The more tests are added, the more we are limited by the size of the
address space on 32-bit. Implement unmapTestOnly all around (like it
is in sanitzer_common) to be able to free up some memory.
This is not intended to be a proper "destructor" for an allocator, but
allows us to not fail due to having no memory left.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/scudo/standalone/primary32.h | ||
---|---|---|
93 ↗ | (On Diff #204088) | It is indeed a valid address. For the 32-bit primary, the address space is split in potential regions of RegionSize bytes, that we index via a one or two level bytemap. |
lib/scudo/standalone/tests/primary_test.cc | ||
25 ↗ | (On Diff #204088) | Good point thanks, I somehow thought it would still end up deleting the original pointer with a custom deleter. I will correct those. |