summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2014-10-04 22:00:51 (GMT)
committerJason Evans <jasone@canonware.com>2014-10-04 22:00:51 (GMT)
commit16854ebeb77c9403ebd1b85fdd46ee80bb3f3e9d (patch)
tree9309c688bd5c092a16baf04f5e06f30693468b9b
parent47395a1b4c0793f676b89a763daaed1cbb510529 (diff)
downloadjemalloc-16854ebeb77c9403ebd1b85fdd46ee80bb3f3e9d.zip
jemalloc-16854ebeb77c9403ebd1b85fdd46ee80bb3f3e9d.tar.gz
jemalloc-16854ebeb77c9403ebd1b85fdd46ee80bb3f3e9d.tar.bz2
Don't disable tcache for lazy-lock.
Don't disable tcache when lazy-lock is configured. There already exists a mechanism to disable tcache, but doing so automatically due to lazy-lock causes surprising performance behavior.
-rw-r--r--include/jemalloc/internal/tcache.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/jemalloc/internal/tcache.h b/include/jemalloc/internal/tcache.h
index 1a70972..1b1d8d9 100644
--- a/include/jemalloc/internal/tcache.h
+++ b/include/jemalloc/internal/tcache.h
@@ -188,8 +188,6 @@ tcache_get(tsd_t *tsd, bool create)
if (!config_tcache)
return (NULL);
- if (config_lazy_lock && !isthreaded)
- return (NULL);
tcache = tsd_tcache_get(tsd);
if (!create)