summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Evans <je@fb.com>2013-11-20 02:01:45 (GMT)
committerJason Evans <je@fb.com>2013-11-20 02:01:45 (GMT)
commitd6df91438a1cf25ea248c3897da463c51709c580 (patch)
treef6080effb3e30c496ea9c2ba076b7c12534f703a /src
parentaabaf851b2be141e2932f736042577ba6586c8d6 (diff)
downloadjemalloc-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tsd.c b/src/tsd.c
index 59e8da3..8431751 100644
--- a/src/tsd.c
+++ b/src/tsd.c
@@ -21,7 +21,7 @@ void
malloc_tsd_dalloc(void *wrapper)
{
- idalloc(wrapper);
+ idallocx(wrapper, false);
}
void