mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 14:41:42 +03:00
Avoid assuming the arena id in test when percpu_arena is used.
This commit is contained in:
parent
f743690739
commit
71bc1a3d91
1 changed files with 3 additions and 0 deletions
|
|
@ -82,6 +82,9 @@ TEST_BEGIN(huge_allocation) {
|
|||
expect_u_gt(arena1, 0, "Huge allocation should not come from arena 0");
|
||||
dallocx(ptr, 0);
|
||||
|
||||
test_skip_if(have_percpu_arena &&
|
||||
PERCPU_ARENA_ENABLED(opt_percpu_arena));
|
||||
|
||||
ptr = mallocx(HUGE_SZ >> 1, 0);
|
||||
expect_ptr_not_null(ptr, "Fail to allocate half huge size");
|
||||
expect_d_eq(mallctl("arenas.lookup", &arena2, &sz, &ptr,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue