diff options
author | Jason Evans <je@fb.com> | 2013-11-20 02:01:45 (GMT) |
---|---|---|
committer | Jason Evans <je@fb.com> | 2013-11-20 02:01:45 (GMT) |
commit | d6df91438a1cf25ea248c3897da463c51709c580 (patch) | |
tree | f6080effb3e30c496ea9c2ba076b7c12534f703a /src | |
parent | aabaf851b2be141e2932f736042577ba6586c8d6 (diff) | |
download | jemalloc-d6df91438a1cf25ea248c3897da463c51709c580.zip jemalloc-d6df91438a1cf25ea248c3897da463c51709c580.tar.gz jemalloc-d6df91438a1cf25ea248c3897da463c51709c580.tar.bz2 |
Fix a potential infinite loop during thread exit.
Fix malloc_tsd_dalloc() to bypass tcache when dallocating, so that there
is no danger of causing tcache reincarnation during thread exit.
Whether this infinite loop occurs depends on the pthreads TSD
implementation; it is known to occur on Solaris.
Submitted by Markus Eberspächer.
Diffstat (limited to 'src')
-rw-r--r-- | src/tsd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -21,7 +21,7 @@ void malloc_tsd_dalloc(void *wrapper) { - idalloc(wrapper); + idallocx(wrapper, false); } void |