diff options
author | Qi Wang <interwq@gwu.edu> | 2017-06-23 01:58:40 (GMT) |
---|---|---|
committer | Qi Wang <interwq@gmail.com> | 2017-06-23 20:27:53 (GMT) |
commit | 57beeb2fcb14210bf25e5a79c317e135392cfd86 (patch) | |
tree | 9147399c15a140016bae00a36c98c18cd96628d6 /src/jemalloc.c | |
parent | 425463a4465043f5f1ccb7f4b257e31ad95b1ed6 (diff) | |
download | jemalloc-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.c | 9 |
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; } |