[PATCH] Fixes in LargeMmapAllocator::GetBlockBegin().

Sergey Matveev earthdok at google.com
Fri Apr 5 19:37:20 PDT 2013


  I see.
  We can change this just for PointerIsMine, like so:

    bool PointerIsMine(void *p) {
      void *block_beg = GetBlockBegin(p);
      return block_beg != 0 && p >= block_beg;
    }

  But I'm totally fine with moving this check to lsan code.

http://llvm-reviews.chandlerc.com/D624



More information about the llvm-commits mailing list