mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-26 00:53:34 +03:00
Fix background_thread creation for the oversize_arena.
Bypassing background thread creation for the oversize_arena used to be an optimization since that arena had eager purging. However #2466 changed the purging policy for the oversize_arena -- specifically it switched to the default decay time when background_thread is enabled. This issue is noticable when the number of arenas is low: whenever the total # of arenas is <= 4 (which is the default max # of background threads), in which case the purging will be stalled since no background thread is created for the oversize_arena.
This commit is contained in:
parent
47d69b4eab
commit
8d8379da44
4 changed files with 2 additions and 25 deletions
|
|
@ -1867,14 +1867,6 @@ arena_init_huge(arena_t *a0) {
|
|||
return huge_enabled;
|
||||
}
|
||||
|
||||
bool
|
||||
arena_is_huge(unsigned arena_ind) {
|
||||
if (huge_arena_ind == 0) {
|
||||
return false;
|
||||
}
|
||||
return (arena_ind == huge_arena_ind);
|
||||
}
|
||||
|
||||
bool
|
||||
arena_boot(sc_data_t *sc_data, base_t *base, bool hpa) {
|
||||
arena_dirty_decay_ms_default_set(opt_dirty_decay_ms);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue