diff options
author | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2022-10-03 11:58:09 +0100 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2022-10-27 14:46:55 +0100 |
commit | 131a8501116b1e9f0ac71aeeb513094be5f99b99 (patch) | |
tree | cdf2056119f152710c09d6c5785af888c34f9f36 /malloc/tst-malloc-thread-exit.c | |
parent | 86affaf7e9121e580abd27e5d423163e75e405c9 (diff) | |
download | glibc-131a8501116b1e9f0ac71aeeb513094be5f99b99.tar glibc-131a8501116b1e9f0ac71aeeb513094be5f99b99.tar.gz glibc-131a8501116b1e9f0ac71aeeb513094be5f99b99.tar.bz2 glibc-131a8501116b1e9f0ac71aeeb513094be5f99b99.zip |
malloc: Don't use __libc_free for tcache cleanup
__libc_free must only be used for memory given out by __libc_malloc
and similar public apis, but tcache stores a cache of already freed
pointers and itself is allocated using internal malloc apis. Strong
double free detection in __libc_free breaks tcache_thread_shutdown,
so use a cut down version of free to reset tcache entries.
Diffstat (limited to 'malloc/tst-malloc-thread-exit.c')
0 files changed, 0 insertions, 0 deletions