Add extent_active_[gs]et().

Always initialize extents' runs_dirty and chunks_cache linkage.
This commit is contained in:
Jason Evans
2016-03-28 03:17:10 -07:00
parent 6f71844659
commit fae8344098
7 changed files with 37 additions and 21 deletions

View File

@@ -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) {