fix statistics for commit-no-demand, issue #1482
diff --git a/src/arena.c b/src/arena.c index c97a11b..a243a91 100644 --- a/src/arena.c +++ b/src/arena.c
@@ -728,6 +728,10 @@ // that contains already decommitted parts. Since purge consistently uses reset or decommit that // works (as we should never reset decommitted parts). } + else { + // fully committed (possibly on demand if claimed without commit): mark the range as committed (issue #1482) + _mi_bitmap_claim_across(arena->blocks_committed, arena->field_count, blocks, bitmap_idx, NULL, NULL); + } // (delay) purge the entire range mi_arena_schedule_purge(arena, bitmap_idx, blocks); }