Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-3476

Use new with nothrow where appropriate

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • Impala 2.6.0
    • None
    • Backend

    Description

      In many places in the code, we use C++ new, which throws an exception on failure. We should instead use the nothrow variant of new where possible, especially for large allocations. This returns NULL instead of throwing an exception.

      http://www.cplusplus.com/reference/new/nothrow/

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tarmstrong Tim Armstrong
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: