mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 13:13:06 +00:00
Emap: Standardize naming.
Namespace everything under emap_, always specify what it is we're looking up (emap_lookup -> emap_edata_lookup), and use "ctx" over "info".
This commit is contained in:
committed by
David Goldblatt
parent
ac50c1e44b
commit
7e6c8a7286
@@ -62,12 +62,12 @@ thd_start(void *varg) {
|
||||
ptr = mallocx(1, MALLOCX_TCACHE_NONE);
|
||||
ptr2 = mallocx(129, MALLOCX_TCACHE_NONE);
|
||||
|
||||
edata = emap_lookup(tsdn, &emap_global, ptr);
|
||||
edata = emap_edata_lookup(tsdn, &emap_global, ptr);
|
||||
shard1 = edata_binshard_get(edata);
|
||||
dallocx(ptr, 0);
|
||||
assert_u_lt(shard1, 16, "Unexpected bin shard used");
|
||||
|
||||
edata = emap_lookup(tsdn, &emap_global, ptr2);
|
||||
edata = emap_edata_lookup(tsdn, &emap_global, ptr2);
|
||||
shard2 = edata_binshard_get(edata);
|
||||
dallocx(ptr2, 0);
|
||||
assert_u_lt(shard2, 4, "Unexpected bin shard used");
|
||||
|
||||
Reference in New Issue
Block a user