Details
Details
- Reviewers
vitalybuka - Commits
- rG9545580447fc: [HWASAN] Remove FindHeapChunkByAddressFastLocked
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
compiler-rt/lib/hwasan/hwasan_allocator.cpp | ||
---|---|---|
524 | Sorry, I didn't expect action for you now, it's rather note for the future. My concern was actually about LargeMmapAllocator::GetBlockBeginFastLocked called from __hwasan::allocator.GetBlockBeginFastLocked. LargeMmapAllocator::GetBlockBegin is O(N) So nothing to FIXME here. But the patch is LGTM |
Sorry, I didn't expect action for you now, it's rather note for the future.
And looks FIXME is incorrect.
My concern was actually about LargeMmapAllocator::GetBlockBeginFastLocked called from __hwasan::allocator.GetBlockBeginFastLocked.
I looked into the code. and it's very different from LargeMmapAllocator::GetBlockBegin.
LargeMmapAllocator::GetBlockBegin is O(N)
LargeMmapAllocator::GetBlockBeginFastLocked is O(Nlog(N)), but if called on suspended process, the sorting should happen just once, so O(log(n))
So nothing to FIXME here.
But the patch is LGTM