summaryrefslogtreecommitdiffstats
path: root/src/jemalloc.c
diff options
context:
space:
mode:
authorQi Wang <interwq@gwu.edu>2017-06-23 01:58:40 (GMT)
committerQi Wang <interwq@gmail.com>2017-06-23 20:27:53 (GMT)
commit57beeb2fcb14210bf25e5a79c317e135392cfd86 (patch)
tree9147399c15a140016bae00a36c98c18cd96628d6 /src/jemalloc.c
parent425463a4465043f5f1ccb7f4b257e31ad95b1ed6 (diff)
downloadjemalloc-57beeb2fcb14210bf25e5a79c317e135392cfd86.zip
jemalloc-57beeb2fcb14210bf25e5a79c317e135392cfd86.tar.gz
jemalloc-57beeb2fcb14210bf25e5a79c317e135392cfd86.tar.bz2
Switch ctl to explicitly use tsd instead of tsdn.
Diffstat (limited to 'src/jemalloc.c')
-rw-r--r--src/jemalloc.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/jemalloc.c b/src/jemalloc.c
index 7bf2310..511710c 100644
--- a/src/jemalloc.c
+++ b/src/jemalloc.c
@@ -2918,16 +2918,15 @@ je_mallctl(const char *name, void *oldp, size_t *oldlenp, void *newp,
JEMALLOC_EXPORT int JEMALLOC_NOTHROW
je_mallctlnametomib(const char *name, size_t *mibp, size_t *miblenp) {
int ret;
- tsdn_t *tsdn;
if (unlikely(malloc_init())) {
return EAGAIN;
}
- tsdn = tsdn_fetch();
- check_entry_exit_locking(tsdn);
- ret = ctl_nametomib(tsdn, name, mibp, miblenp);
- check_entry_exit_locking(tsdn);
+ tsd_t *tsd = tsd_fetch();
+ check_entry_exit_locking(tsd_tsdn(tsd));
+ ret = ctl_nametomib(tsd, name, mibp, miblenp);
+ check_entry_exit_locking(tsd_tsdn(tsd));
return ret;
}