mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 21:23:06 +00:00
Edata: Move sn into its own field.
This lets the bins use a fragmentation avoidance policy that matches the HPA's (without affecting the PAC).
This commit is contained in:
committed by
David Goldblatt
parent
fb327368db
commit
d21d5b46b6
@@ -448,7 +448,7 @@ base_alloc_impl(tsdn_t *tsdn, base_t *base, size_t size, size_t alignment,
|
||||
|
||||
ret = base_extent_bump_alloc(base, edata, usize, alignment);
|
||||
if (esn != NULL) {
|
||||
*esn = edata_sn_get(edata);
|
||||
*esn = (size_t)edata_sn_get(edata);
|
||||
}
|
||||
label_return:
|
||||
malloc_mutex_unlock(tsdn, &base->mtx);
|
||||
|
||||
Reference in New Issue
Block a user