diff options
author | Qi Wang <interwq@gwu.edu> | 2017-04-07 21:20:57 (GMT) |
---|---|---|
committer | Qi Wang <interwq@gmail.com> | 2017-04-07 23:25:43 (GMT) |
commit | 04ef218d872ae73964f9f6c8d1186c4a1e270d70 (patch) | |
tree | 1dd727bbbde6f3afd0dd749acb1de1c353cfc819 /src | |
parent | b407a65401bca5828760c8fd5e940e91475a2b3e (diff) | |
download | jemalloc-04ef218d872ae73964f9f6c8d1186c4a1e270d70.zip jemalloc-04ef218d872ae73964f9f6c8d1186c4a1e270d70.tar.gz jemalloc-04ef218d872ae73964f9f6c8d1186c4a1e270d70.tar.bz2 |
Move reentrancy_level to the beginning of TSD.
Diffstat (limited to 'src')
-rw-r--r-- | src/arena.c | 2 | ||||
-rw-r--r-- | src/jemalloc.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/arena.c b/src/arena.c index 19069bb..198c6e4 100644 --- a/src/arena.c +++ b/src/arena.c @@ -1958,7 +1958,7 @@ arena_new(tsdn_t *tsdn, unsigned ind, extent_hooks_t *extent_hooks) { * If we're here, then arena 0 already exists, so bootstrapping * is done enough that we should have tsd. */ - int *reentrancy_level = tsd_reentrancy_levelp_get(tsdn_tsd( + int8_t *reentrancy_level = tsd_reentrancy_levelp_get(tsdn_tsd( tsdn)); ++*reentrancy_level; hooks_arena_new_hook(); diff --git a/src/jemalloc.c b/src/jemalloc.c index 7b205ff..513d9cd 100644 --- a/src/jemalloc.c +++ b/src/jemalloc.c @@ -1662,7 +1662,7 @@ imalloc_body(static_opts_t *sopts, dynamic_opts_t *dopts) { * bother getting the old level, so we shouldn't try to reset it. This * is indicated by leaving the pointer as NULL. */ - int *reentrancy_level = NULL; + int8_t *reentrancy_level = NULL; /* Initialize (if we can't prove we don't have to). */ if (sopts->slow) { |