mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-01 16:10:30 +03:00
Add extent_active_[gs]et().
Always initialize extents' runs_dirty and chunks_cache linkage.
This commit is contained in:
parent
6f71844659
commit
fae8344098
7 changed files with 37 additions and 21 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue