mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-06-06 04:04:17 +03:00
Make tsd no-cleanup during tsd reincarnation.
Since tsd cleanup isn't guaranteed when reincarnated, we set up tsd in a way that needs no cleanup, by making it going through slow path instead.
This commit is contained in:
parent
29c2577ee0
commit
00869e39a3
4 changed files with 51 additions and 24 deletions
|
|
@ -1764,7 +1764,8 @@ imalloc_body(static_opts_t *sopts, dynamic_opts_t *dopts, tsd_t *tsd) {
|
|||
* We should never specify particular arenas or tcaches from
|
||||
* within our internal allocations.
|
||||
*/
|
||||
assert(dopts->tcache_ind == TCACHE_IND_AUTOMATIC);
|
||||
assert(dopts->tcache_ind == TCACHE_IND_AUTOMATIC ||
|
||||
dopts->tcache_ind == TCACHE_IND_NONE);
|
||||
assert(dopts->arena_ind = ARENA_IND_AUTOMATIC);
|
||||
dopts->tcache_ind = TCACHE_IND_NONE;
|
||||
/* We know that arena 0 has already been initialized. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue