diff options
author | Qi Wang <interwq@gwu.edu> | 2017-11-13 19:41:53 (GMT) |
---|---|---|
committer | Qi Wang <interwq@gmail.com> | 2017-11-16 23:32:02 (GMT) |
commit | 282a3faa1784783e2e2cb3698183927b3927b950 (patch) | |
tree | 46ae725d114f7a836099c1d6f064c73fc1459b12 | |
parent | d6feed6e6631d00806607cfe16a796e337752044 (diff) | |
download | jemalloc-282a3faa1784783e2e2cb3698183927b3927b950.zip jemalloc-282a3faa1784783e2e2cb3698183927b3927b950.tar.gz jemalloc-282a3faa1784783e2e2cb3698183927b3927b950.tar.bz2 |
Use extent_heap_first for best fit.
extent_heap_any makes the layout less predictable and as a result incurs more
fragmentation.
-rw-r--r-- | src/extent.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/extent.c b/src/extent.c index c8a3090..466e0b2 100644 --- a/src/extent.c +++ b/src/extent.c @@ -370,7 +370,7 @@ extents_best_fit_locked(tsdn_t *tsdn, arena_t *arena, extents_t *extents, (size_t)pind); if (i < NPSIZES+1) { assert(!extent_heap_empty(&extents->heaps[i])); - extent_t *extent = extent_heap_any(&extents->heaps[i]); + extent_t *extent = extent_heap_first(&extents->heaps[i]); assert(extent_size_get(extent) >= size); return extent; } |