mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-25 16:43:33 +03:00
Move reentrancy_level to the beginning of TSD.
This commit is contained in:
parent
b407a65401
commit
04ef218d87
3 changed files with 9 additions and 9 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue