Skip to content
Commit 32896a90 authored by Jason Evans's avatar Jason Evans
Browse files

Fix large allocation to search optimal size class heap.

Fix arena_run_alloc_large_helper() to not convert size to usize when
searching for the first best fit via arena_run_first_best_fit().  This
allows the search to consider the optimal quantized size class, so that
e.g. allocating and deallocating 40 KiB in a tight loop can reuse the
same memory.

This regression was nominally caused by
5707d6f9 (Quantize szad trees by size
class.), but it did not commonly cause problems until
8a03cf03 (Implement cache index
randomization for large allocations.).  These regressions were first
released in 4.0.0.

This resolves #487.
parent e9012630
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment