[scudo] Only prepare PageMap entry for partial region
authorChia-hung Duan <chiahungduan@google.com>
Fri, 24 Feb 2023 04:20:30 +0000 (04:20 +0000)
committerChia-hung Duan <chiahungduan@google.com>
Mon, 27 Feb 2023 18:49:10 +0000 (18:49 +0000)
commit0a0b6fa4fbdf3bdeb300ddd58859f66b714b8bdf
tree5278ff5f16a501e2007796494196ce0ba38d8623
parent2aeda9aaaf3a6fcb4d51930ce61751494d53836f
[scudo] Only prepare PageMap entry for partial region

This reduces the size of PageMap and we are more likely to use the
static local buffer. Note that now this is only supported for single
region case, i.e. on SizeClassAllocator64. For SizeClassAllocator32,
it needs a different way to save the PageMap.

Differential Revision: https://reviews.llvm.org/D142659
compiler-rt/lib/scudo/standalone/primary32.h
compiler-rt/lib/scudo/standalone/primary64.h
compiler-rt/lib/scudo/standalone/release.h
compiler-rt/lib/scudo/standalone/tests/release_test.cpp