mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-05-04 19:09:57 +03:00
Track extent structure serial number (esn) in extent_t.
This enables stable sorting of extent_t structures.
This commit is contained in:
parent
69aa552809
commit
76b35f4b2f
7 changed files with 121 additions and 48 deletions
|
|
@ -98,8 +98,7 @@ extent_alloc(tsdn_t *tsdn, arena_t *arena) {
|
|||
extent = extent_list_last(&arena->extent_freelist);
|
||||
if (extent == NULL) {
|
||||
malloc_mutex_unlock(tsdn, &arena->extent_freelist_mtx);
|
||||
return base_alloc(tsdn, arena->base, sizeof(extent_t),
|
||||
CACHELINE);
|
||||
return base_alloc_extent(tsdn, arena->base);
|
||||
}
|
||||
extent_list_remove(&arena->extent_freelist, extent);
|
||||
malloc_mutex_unlock(tsdn, &arena->extent_freelist_mtx);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue