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

Remove workaround for posix_memalign in SystemAllocator after LLVM 6.0 upgrade

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Impala 2.11.0
    • None
    • Backend
    • None

    Description

      Once we upgrade to LLVM 5.0 we should be able to remove a workaround for https://bugs.llvm.org/show_bug.cgi?id=32968 :

      #ifdef ADDRESS_SANITIZER
        // Workaround ASAN bug where posix_memalign returns 0 even when allocation fails.
        // It should instead return ENOMEM. See https://bugs.llvm.org/show_bug.cgi?id=32968.
        if (rc == 0 && *buffer_mem == nullptr && len != 0) rc = ENOMEM;
      #endif
      
      

      Attachments

        Issue Links

          Activity

            People

              stakiar Sahil Takiar
              tarmstrong Tim Armstrong
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: