Replace the uses of raw map()/unmap(), .etc calls with MemMap. Also
remove the direct use of MapPlatformData in the secondary allocator.
Also add setMemoryPermission() in MemMap.
Paths
| Differential D146454
[scudo] Manage pages with MemMap in Secondary Allocator ClosedPublic Authored by Chia-hungDuan on Mar 20 2023, 1:39 PM.
Details Summary Replace the uses of raw map()/unmap(), .etc calls with MemMap. Also Also add setMemoryPermission() in MemMap.
Diff Detail
Event TimelineChia-hungDuan added a parent revision: D146009: [scudo] Manage pages with MemMap in SizeClassAllocator64.Mar 20 2023, 1:42 PM This revision is now accepted and ready to land.Mar 20 2023, 2:39 PM Chia-hungDuan added a child revision: D146570: [scudo] Switch to use MemMap in tests.Mar 21 2023, 2:56 PM This revision now requires changes to proceed.Apr 4 2023, 6:04 PM Chia-hungDuan marked an inline comment as done. Comment ActionsAddress review comment
This revision is now accepted and ready to land.Apr 5 2023, 1:34 PM Closed by commit rG09239636dce5: [scudo] Manage pages with MemMap in Secondary Allocator (authored by Chia-hungDuan). · Explain WhyApr 5 2023, 2:35 PM This revision was automatically updated to reflect the committed changes. fabio-d added inline comments.
This revision is now accepted and ready to land.Apr 11 2023, 11:36 AM
Revision Contents
Diff 511212 compiler-rt/lib/scudo/standalone/mem_map.h
compiler-rt/lib/scudo/standalone/mem_map.cpp
compiler-rt/lib/scudo/standalone/mem_map_base.h
compiler-rt/lib/scudo/standalone/secondary.h
|
Like in the other CL, this breaks releasePagesToOS on Fuchsia. I think it's the usual bad offset due to the fact that MemMap was created like this
but ReservedMemory.getBase() != CommitBase