merge from dev-slice
This commit is contained in:
commit
627892852c
@ -737,6 +737,7 @@ size_t _mi_commit_mask_next_run(const mi_commit_mask_t* cm, size_t* idx);
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// -------------------------------------------------------------------
|
// -------------------------------------------------------------------
|
||||||
// Fast "random" shuffle
|
// Fast "random" shuffle
|
||||||
// -------------------------------------------------------------------
|
// -------------------------------------------------------------------
|
||||||
|
@ -152,6 +152,7 @@ size_t _mi_commit_mask_next_run(const mi_commit_mask_t* cm, size_t* idx) {
|
|||||||
be reclaimed by still running threads, much like work-stealing.
|
be reclaimed by still running threads, much like work-stealing.
|
||||||
-------------------------------------------------------------------------------- */
|
-------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
|
||||||
/* -----------------------------------------------------------
|
/* -----------------------------------------------------------
|
||||||
Slices
|
Slices
|
||||||
----------------------------------------------------------- */
|
----------------------------------------------------------- */
|
||||||
@ -493,7 +494,7 @@ static void mi_segment_commit_mask(mi_segment_t* segment, bool conservative, uin
|
|||||||
|
|
||||||
size_t bitcount = *full_size / MI_COMMIT_SIZE; // can be 0
|
size_t bitcount = *full_size / MI_COMMIT_SIZE; // can be 0
|
||||||
if (bitidx + bitcount > MI_COMMIT_MASK_BITS) {
|
if (bitidx + bitcount > MI_COMMIT_MASK_BITS) {
|
||||||
_mi_warning_message("commit mask overflow: %zu %zu %zu %zu 0x%p %zu\n", bitidx, bitcount, start, end, p, size);
|
_mi_warning_message("commit mask overflow: idx=%zu count=%zu start=%zx end=%zx p=0x%p size=%zu fullsize=%zu\n", bitidx, bitcount, start, end, p, size, *full_size);
|
||||||
}
|
}
|
||||||
mi_assert_internal((bitidx + bitcount) <= MI_COMMIT_MASK_BITS);
|
mi_assert_internal((bitidx + bitcount) <= MI_COMMIT_MASK_BITS);
|
||||||
mi_commit_mask_create(bitidx, bitcount, cm);
|
mi_commit_mask_create(bitidx, bitcount, cm);
|
||||||
|
Loading…
Reference in New Issue
Block a user