Fix run_quantize_ceil().

In practice this bug had limited impact (and then only by increasing
chunk fragmentation) because run_quantize_ceil() returned correct
results except for inputs that could only arise from aligned allocation
requests that required more than page alignment.

This bug existed in the original run quantization implementation, which
was introduced by 8a03cf039c (Implement
cache index randomization for large allocations.).
This commit is contained in:
Jason Evans 2016-02-22 15:01:37 -08:00
parent a9a4684792
commit 08551eee58

View File

@ -185,7 +185,7 @@ run_quantize_ceil(size_t size)
* search would potentially find sufficiently aligned available * search would potentially find sufficiently aligned available
* memory somewhere lower. * memory somewhere lower.
*/ */
qsize = run_quantize_ceil_hard(size); qsize = run_quantize_ceil_hard(qsize);
} }
return (qsize); return (qsize);
} }