summaryrefslogtreecommitdiffstats
path: root/include/jemalloc/internal/jemalloc_internal_inlines_a.h
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2017-07-02 00:44:01 (GMT)
committerJason Evans <jasone@canonware.com>2017-07-02 00:44:01 (GMT)
commit896ed3a8b3f41998d4fb4d625d30ac63ef2d51fb (patch)
treeb335c987c7861f6934b860e14587676208aeee48 /include/jemalloc/internal/jemalloc_internal_inlines_a.h
parent5018fe3f0979b7f9db9930accdf7ee31071fd703 (diff)
parent284edf02b0de3231357497cf0367f6f64ab07cd8 (diff)
downloadjemalloc-5.0.1.zip
jemalloc-5.0.1.tar.gz
jemalloc-5.0.1.tar.bz2
Merge branch 'dev'5.0.1
Diffstat (limited to 'include/jemalloc/internal/jemalloc_internal_inlines_a.h')
-rw-r--r--include/jemalloc/internal/jemalloc_internal_inlines_a.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/jemalloc/internal/jemalloc_internal_inlines_a.h b/include/jemalloc/internal/jemalloc_internal_inlines_a.h
index 854fb1e..24ea416 100644
--- a/include/jemalloc/internal/jemalloc_internal_inlines_a.h
+++ b/include/jemalloc/internal/jemalloc_internal_inlines_a.h
@@ -146,7 +146,10 @@ tcache_get(tsd_t *tsd) {
}
static inline void
-pre_reentrancy(tsd_t *tsd) {
+pre_reentrancy(tsd_t *tsd, arena_t *arena) {
+ /* arena is the current context. Reentry from a0 is not allowed. */
+ assert(arena != arena_get(tsd_tsdn(tsd), 0, false));
+
bool fast = tsd_fast(tsd);
++*tsd_reentrancy_levelp_get(tsd);
if (fast) {