jemalloc/test/integration
Ihar Hrachyshka 7029edec97
test: handle profiled xallocx no-grow in extent test
With profiling active, xallocx may decline to grow an allocation that is
not page-aligned.  The profiling path can require sampled xallocx growth
to use page-aligned pointers; otherwise it can return the old usable
size without committing the purged tail.

Observed on Darwin, where decommit/commit are real VM state changes.
The shrink/purge half succeeds and records a decommit, then the
profiling-limited grow skips the matching commit.

This is not Darwin-specific.  Linux no-overcommit should expose the same
mismatch.  Usual Linux overcommit behavior papers it over by making
commit/decommit hooks report unsupported, so both sides of the old
equality check stay false.

Relax the default-path assertion only while profiling is active, and add
a page-aligned case that still requires xallocx shrink and grow to
succeed, preserving commit/merge coverage.

Assisted-by: Codex gpt-5.5 xhigh
2026-07-10 20:08:12 -04:00
..
cpp Replace experimental_infallible_new with compile-time flag 2026-06-06 09:50:37 -04:00
aligned_alloc.c Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
allocated.c Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
extent.c test: handle profiled xallocx no-grow in extent test 2026-07-10 20:08:12 -04:00
extent.sh Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00
free_sized.c Accept NULL in free_sized() and free_aligned_sized() 2026-06-29 16:35:49 -04:00
malloc.c Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
mallocx.c Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
mallocx.sh Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00
MALLOCX_ARENA.c Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
overflow.c Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
posix_memalign.c Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
rallocx.c Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
sdallocx.c Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
slab_sizes.c Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
slab_sizes.sh Add MALLOC_CONF parsing for dynamic slab sizes. 2018-07-12 20:53:06 -07:00
smallocx.c Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
smallocx.sh Adapts mallocx integration tests for smallocx 2018-10-17 07:12:28 -07:00
thread_arena.c Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
thread_tcache_enabled.c Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
xallocx.c Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07:00
xallocx.sh Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08:00