reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

projects/compiler-rt/lib/scudo/scudo_allocator.cpp
  494     if (UNLIKELY(GuardedAlloc.pointerIsMine(OldPtr))) {
  495       size_t OldSize = GuardedAlloc.getSize(OldPtr);
  498         memcpy(NewPtr, OldPtr, (NewSize < OldSize) ? NewSize : OldSize);
  499       GuardedAlloc.deallocate(OldPtr);
  504     if (UNLIKELY(!Chunk::isAligned(OldPtr)))
  506                      OldPtr);
  508     Chunk::loadHeader(OldPtr, &OldHeader);
  511                      OldPtr);
  515                        "%p\n", OldPtr);
  517     const uptr UsableSize = Chunk::getUsableSize(OldPtr, &OldHeader);
  525       Chunk::compareExchangeHeader(OldPtr, &NewHeader, &OldHeader);
  526       return OldPtr;
  534       memcpy(NewPtr, OldPtr, Min(NewSize, UsableSize));
  535       quarantineOrDeallocateChunk(OldPtr, &OldHeader, OldSize);