mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-24 05:33:06 +00:00
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.
This commit is contained in:
@@ -188,8 +188,6 @@ tcache_get(tsd_t *tsd, bool create)
|
|||||||
|
|
||||||
if (!config_tcache)
|
if (!config_tcache)
|
||||||
return (NULL);
|
return (NULL);
|
||||||
if (config_lazy_lock && !isthreaded)
|
|
||||||
return (NULL);
|
|
||||||
|
|
||||||
tcache = tsd_tcache_get(tsd);
|
tcache = tsd_tcache_get(tsd);
|
||||||
if (!create)
|
if (!create)
|
||||||
|
|||||||
Reference in New Issue
Block a user