summaryrefslogtreecommitdiff
path: root/libc/malloc_hooks/malloc_hooks.cpp
diff options
context:
space:
mode:
authorRyan Prichard <rprichard@google.com>2020-02-04 15:46:15 -0800
committerRyan Prichard <rprichard@google.com>2020-03-06 21:04:32 -0800
commitafa983c8d44400d45c1f0e2b8e90a8be04acf6f7 (patch)
treef0fc789f6d271b57058cff9518f44793db175f92 /libc/malloc_hooks/malloc_hooks.cpp
parent1a1888f801e1efc4232a3e709d959232659af0c6 (diff)
Rewrite __cxa_atexit / __cxa_finalize
Simplify: - Use a single memory-mapped region to hold the table of destructors. Double its capacity each time it is expanded. - Add a recompaction pass at the end of __cxa_finalize that shifts entries forward and uses madvise to clean pages. Bug: http://b/148055738 Test: bionic-unit-tests Change-Id: Ieb9da2b88640a8a5277d217b43826b5b7e246781
Diffstat (limited to 'libc/malloc_hooks/malloc_hooks.cpp')
0 files changed, 0 insertions, 0 deletions