mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 21:23:06 +00:00
Add extent_active_[gs]et().
Always initialize extents' runs_dirty and chunks_cache linkage.
This commit is contained in:
@@ -66,7 +66,7 @@ base_chunk_alloc(tsdn_t *tsdn, size_t minsize)
|
||||
base_resident += PAGE_CEILING(nsize);
|
||||
}
|
||||
}
|
||||
extent_init(extent, NULL, addr, csize, true, true);
|
||||
extent_init(extent, NULL, addr, csize, true, true, true);
|
||||
return (extent);
|
||||
}
|
||||
|
||||
@@ -90,7 +90,7 @@ base_alloc(tsdn_t *tsdn, size_t size)
|
||||
csize = CACHELINE_CEILING(size);
|
||||
|
||||
usize = s2u(csize);
|
||||
extent_init(&key, NULL, NULL, usize, false, false);
|
||||
extent_init(&key, NULL, NULL, usize, false, false, false);
|
||||
malloc_mutex_lock(tsdn, &base_mtx);
|
||||
extent = extent_tree_szad_nsearch(&base_avail_szad, &key);
|
||||
if (extent != NULL) {
|
||||
|
||||
Reference in New Issue
Block a user