mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 21:23:06 +00:00
Cache extra extents in the dirty pool from ecache_alloc_grow
This commit is contained in:
@@ -410,7 +410,14 @@ TEST_BEGIN(test_decay_never) {
|
||||
/* Verify that each deallocation generates additional dirty pages. */
|
||||
size_t pdirty_prev = get_arena_pdirty(arena_ind);
|
||||
size_t pmuzzy_prev = get_arena_pmuzzy(arena_ind);
|
||||
expect_zu_eq(pdirty_prev, 0, "Unexpected dirty pages");
|
||||
/*
|
||||
* With limit_usize_gap enabled, some more extents
|
||||
* are cached in the dirty pool, making the assumption below
|
||||
* not true.
|
||||
*/
|
||||
if (!sz_limit_usize_gap_enabled()) {
|
||||
expect_zu_eq(pdirty_prev, 0, "Unexpected dirty pages");
|
||||
}
|
||||
expect_zu_eq(pmuzzy_prev, 0, "Unexpected muzzy pages");
|
||||
for (unsigned i = 0; i < sizeof(sizes)/sizeof(size_t); i++) {
|
||||
dallocx(ptrs[i], flags);
|
||||
|
||||
Reference in New Issue
Block a user