Fix arena_run_first_best_fit
Merge of 3417a304cc
looks like a small
bug: first_best_fit doesn't scan through all the classes, since ind is
offset from runs_avail_nclasses by run_avail_bias.
This commit is contained in:
parent
c7a9a6c86b
commit
cd86c1481a
@ -1079,7 +1079,7 @@ arena_run_first_best_fit(arena_t *arena, size_t size)
|
|||||||
szind_t ind, i;
|
szind_t ind, i;
|
||||||
|
|
||||||
ind = size2index(run_quantize_ceil(size));
|
ind = size2index(run_quantize_ceil(size));
|
||||||
for (i = ind; i < runs_avail_nclasses; i++) {
|
for (i = ind; i < runs_avail_nclasses + runs_avail_bias; i++) {
|
||||||
arena_chunk_map_misc_t *miscelm = arena_run_tree_first(
|
arena_chunk_map_misc_t *miscelm = arena_run_tree_first(
|
||||||
arena_runs_avail_get(arena, i));
|
arena_runs_avail_get(arena, i));
|
||||||
if (miscelm != NULL)
|
if (miscelm != NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user