mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-05 23:19:31 +03:00
remove unused local
This commit is contained in:
parent
0e1670a4fb
commit
a636d88d99
1 changed files with 1 additions and 3 deletions
|
@ -302,9 +302,7 @@ static mi_decl_noinline void* mi_arena_try_alloc(int numa_node, size_t size, siz
|
||||||
MI_UNUSED(alignment);
|
MI_UNUSED(alignment);
|
||||||
mi_assert_internal(alignment <= MI_SEGMENT_ALIGN);
|
mi_assert_internal(alignment <= MI_SEGMENT_ALIGN);
|
||||||
const size_t max_arena = mi_atomic_load_relaxed(&mi_arena_count);
|
const size_t max_arena = mi_atomic_load_relaxed(&mi_arena_count);
|
||||||
const size_t bcount = mi_block_count_of_size(size);
|
|
||||||
if mi_likely(max_arena == 0) return NULL;
|
if mi_likely(max_arena == 0) return NULL;
|
||||||
mi_assert_internal(size <= mi_arena_block_size(bcount));
|
|
||||||
|
|
||||||
if (req_arena_id != _mi_arena_id_none()) {
|
if (req_arena_id != _mi_arena_id_none()) {
|
||||||
// try a specific arena if requested
|
// try a specific arena if requested
|
||||||
|
|
Loading…
Add table
Reference in a new issue