aboutsummaryrefslogtreecommitdiff
path: root/contrib/jemalloc
diff options
context:
space:
mode:
authorMichal Meloun <mmel@FreeBSD.org>2017-12-10 08:55:48 +0000
committerMichal Meloun <mmel@FreeBSD.org>2017-12-10 08:55:48 +0000
commit3ee2fe0199fd4ee7e844b86ccc550ca84e5d36ba (patch)
treeb5f682418afc8517f513af7cc1774278d0e0827f /contrib/jemalloc
parent713e8449713068c012879302e1ba6d9cb1dc6557 (diff)
Notes
Diffstat (limited to 'contrib/jemalloc')
-rw-r--r--contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h b/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h
index 7ffce6fb0356..62f8fab78fa2 100644
--- a/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h
+++ b/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal_inlines_c.h
@@ -91,9 +91,11 @@ idalloctm(tsdn_t *tsdn, void *ptr, tcache_t *tcache, alloc_ctx_t *alloc_ctx,
if (config_stats && is_internal) {
arena_internal_sub(iaalloc(tsdn, ptr), isalloc(tsdn, ptr));
}
+#if 0
if (!is_internal && tsd_reentrancy_level_get(tsdn_tsd(tsdn)) != 0) {
assert(tcache == NULL);
}
+#endif
arena_dalloc(tsdn, ptr, tcache, alloc_ctx, slow_path);
}