diff options
author | Ryan Prichard <rprichard@google.com> | 2020-02-04 15:46:15 -0800 |
---|---|---|
committer | Ryan Prichard <rprichard@google.com> | 2020-03-06 21:04:32 -0800 |
commit | afa983c8d44400d45c1f0e2b8e90a8be04acf6f7 (patch) | |
tree | f0fc789f6d271b57058cff9518f44793db175f92 /libc/malloc_hooks/malloc_hooks.cpp | |
parent | 1a1888f801e1efc4232a3e709d959232659af0c6 (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