Home
last modified time | relevance | path

Searched refs:UsableSize (Results 1 – 1 of 1) sorted by relevance

/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/scudo/
H A Dscudo_allocator.cpp521 const uptr UsableSize = Chunk::getUsableSize(OldPtr, &OldHeader); in reallocate() local
524 if (NewSize <= UsableSize && in reallocate()
525 (UsableSize - NewSize) < (SizeClassMap::kMaxSize / 2)) { in reallocate()
528 OldHeader.ClassId ? NewSize : UsableSize - NewSize; in reallocate()
537 UsableSize - OldHeader.SizeOrUnusedBytes; in reallocate()
538 memcpy(NewPtr, OldPtr, Min(NewSize, UsableSize)); in reallocate()