mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-12 14:18:42 +03:00
fix assertions for huge pages in secure mode
This commit is contained in:
parent
b8846f7a27
commit
66e5484c1c
2 changed files with 8 additions and 4 deletions
|
@ -157,7 +157,7 @@ static void* mi_cache_pop(int numa_node, size_t size, size_t alignment, bool* co
|
|||
}
|
||||
|
||||
// find an available slot
|
||||
mi_bitmap_index_t bitidx;
|
||||
mi_bitmap_index_t bitidx = 0;
|
||||
bool claimed = false;
|
||||
if (*large) { // large allowed?
|
||||
claimed = mi_bitmap_try_find_from_claim(cache_available_large, MI_CACHE_FIELDS, start_field, 1, &bitidx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue