diff options
author | Daniel Thornburgh <dthorn@google.com> | 2024-07-25 13:38:06 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-25 13:38:06 -0700 |
commit | 0c10bdc05f0f90ae173f29854f03796e92ed76e4 (patch) | |
tree | 701a3aac3f77e09369b0f2979096fdb838f60097 /lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.cpp | |
parent | a3092152ac486f440376c732a5503b5c60d13183 (diff) | |
download | llvm-0c10bdc05f0f90ae173f29854f03796e92ed76e4.zip llvm-0c10bdc05f0f90ae173f29854f03796e92ed76e4.tar.gz llvm-0c10bdc05f0f90ae173f29854f03796e92ed76e4.tar.bz2 |
[libc] Lazily initialize freelist malloc using symbols (#99254)
This requires the user to set the upper bounds of the heap by defining
the symbol `__libc_heap_limit`. The heap begins at `_end` and ends
`__libc_heap_limit` bytes afterwards. This prevents a completely unused
heap from requiring any space, and it prevents the heap from being
zeroed at initialization time as part of BSS. It also allows users to
customize the available heap location without recompiling libc.
I'd think this should eventually be replaced with an implemenation based
on a morecore() library. This would allow the same implementation to use
sbrk() on POSIX, `_end` and `__libc_heap_limit` on embedded, and a
buffer in tests. It would also provide better "wilderness" behavior that
tends to decrease heap fragementation (see Wilson et al.)
See #98096
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.cpp')
0 files changed, 0 insertions, 0 deletions