mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 13:13:06 +00:00
PA: Parameterize emap. Move emap_global to arena.
This lets us test the PA module without interfering with the global emap used by the real allocator (the one not under test).
This commit is contained in:
committed by
David Goldblatt
parent
f730577277
commit
294b276fc7
@@ -103,7 +103,7 @@ TEST_END
|
||||
static void
|
||||
confirm_malloc(void *p) {
|
||||
assert_ptr_not_null(p, "malloc failed unexpectedly");
|
||||
edata_t *e = emap_edata_lookup(TSDN_NULL, &emap_global, p);
|
||||
edata_t *e = emap_edata_lookup(TSDN_NULL, &arena_emap_global, p);
|
||||
assert_ptr_not_null(e, "NULL edata for living pointer");
|
||||
prof_recent_t *n = edata_prof_recent_alloc_get_no_lock(e);
|
||||
assert_ptr_not_null(n, "Record in edata should not be NULL");
|
||||
|
||||
Reference in New Issue
Block a user