mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-04 22:49:32 +03:00
fix purge bug in arenas
This commit is contained in:
parent
83aa635485
commit
8ddf6f96a8
1 changed files with 1 additions and 1 deletions
|
@ -423,7 +423,7 @@ static bool mi_arena_purge_range(mi_arena_t* arena, size_t idx, size_t startidx,
|
|||
bool all_purged = false;
|
||||
while (bitidx < endidx) {
|
||||
size_t count = 0;
|
||||
while (bitidx + count < endidx && (purge & ((size_t)1 << (bitidx + count))) == 1) {
|
||||
while (bitidx + count < endidx && (purge & ((size_t)1 << (bitidx + count))) != 0) {
|
||||
count++;
|
||||
}
|
||||
if (count > 0) {
|
||||
|
|
Loading…
Add table
Reference in a new issue