summaryrefslogtreecommitdiff
path: root/deps/jemalloc/src/hook.c
diff options
context:
space:
mode:
Diffstat (limited to 'deps/jemalloc/src/hook.c')
-rw-r--r--deps/jemalloc/src/hook.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/deps/jemalloc/src/hook.c b/deps/jemalloc/src/hook.c
index 9ac703cf9..493edbbe5 100644
--- a/deps/jemalloc/src/hook.c
+++ b/deps/jemalloc/src/hook.c
@@ -130,9 +130,9 @@ hook_reentrantp() {
*/
static bool in_hook_global = true;
tsdn_t *tsdn = tsdn_fetch();
- tcache_t *tcache = tsdn_tcachep_get(tsdn);
- if (tcache != NULL) {
- return &tcache->in_hook;
+ bool *in_hook = tsdn_in_hookp_get(tsdn);
+ if (in_hook!= NULL) {
+ return in_hook;
}
return &in_hook_global;
}