mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-04 22:49:32 +03:00
be more strict on initially_zero for arena allocation
This commit is contained in:
parent
632edf9996
commit
b66e3214d8
1 changed files with 3 additions and 1 deletions
|
@ -234,7 +234,9 @@ static mi_decl_noinline void* mi_arena_try_alloc_at(mi_arena_t* arena, size_t ar
|
||||||
}
|
}
|
||||||
|
|
||||||
// set the dirty bits (todo: no need for an atomic op here?)
|
// set the dirty bits (todo: no need for an atomic op here?)
|
||||||
memid->initially_zero = _mi_bitmap_claim_across(arena->blocks_dirty, arena->field_count, needed_bcount, bitmap_index, NULL);
|
if (arena->memid.initially_zero && arena->blocks_dirty != NULL) {
|
||||||
|
memid->initially_zero = _mi_bitmap_claim_across(arena->blocks_dirty, arena->field_count, needed_bcount, bitmap_index, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
// set commit state
|
// set commit state
|
||||||
if (arena->blocks_committed == NULL) {
|
if (arena->blocks_committed == NULL) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue