mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-24 05:33:06 +00:00
Fix psset_enumerate_search pages-vs-bytes comparison
This commit is contained in:
@@ -349,7 +349,7 @@ psset_enumerate_search(psset_t *psset, pszind_t pind, size_t size) {
|
||||
|
||||
while ((ps = hpdata_age_heap_enumerate_next(
|
||||
&psset->pageslabs[pind], &helper))) {
|
||||
if (hpdata_longest_free_range_get(ps) >= size) {
|
||||
if ((hpdata_longest_free_range_get(ps) << LG_PAGE) >= size) {
|
||||
return ps;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user