mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-06 23:39:31 +03:00
fix NX test in try_find_and_clearN
This commit is contained in:
parent
10b40f90fc
commit
34e402e128
1 changed files with 2 additions and 2 deletions
|
@ -201,8 +201,8 @@ mi_decl_nodiscard static inline bool mi_bitmap_try_find_and_clearN(mi_bitmap_t*
|
|||
if (n==1) return mi_bitmap_try_find_and_clear(bitmap, tseq, pidx); // small pages
|
||||
if (n==8) return mi_bitmap_try_find_and_clear8(bitmap, tseq, pidx); // medium pages
|
||||
// if (n==MI_BFIELD_BITS) return mi_bitmap_try_find_and_clearX(bitmap, tseq, pidx); // large pages
|
||||
if (n == 0 || n > MI_BCHUNK_BITS) return false; // cannot be more than a chunk
|
||||
if (n < MI_BFIELD_BITS) return mi_bitmap_try_find_and_clearNX(bitmap, tseq, n, pidx);
|
||||
if (n==0 || n>MI_BCHUNK_BITS) return false; // cannot be more than a chunk
|
||||
if (n <= MI_BFIELD_BITS) return mi_bitmap_try_find_and_clearNX(bitmap, tseq, n, pidx);
|
||||
return mi_bitmap_try_find_and_clearN_(bitmap, tseq, n, pidx);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue