jemalloc/test/integration
Slobodan Predolac a54018337c Consolidate arena_* header split into arena.h
arena_types.h + arena_structs.h + arena_externs.h merged into arena.h,
keeping the three logical sections (TYPES / STRUCTS / EXTERNS) with
explicit dividers.  arena_inlines_a.h and arena_inlines_b.h stay
separate; arena_inlines_b.h now carries a comment explaining why
merging the two would reintroduce a real #include cycle through
tcache_inlines.h -> arena_choose (the asymmetric cycle-breaker).

Two ordering gotchas this consolidation surfaced:

1. tsd_internals.h is included from tsd.h via tsd_generic.h, sometimes
   long before arena.h is loaded (e.g. ckh.c includes ckh.h -> tsd.h
   before jemalloc_internal_includes.h).  TSD_INITIALIZER's expansion
   in tsd_generic.h's function bodies references
   ARENA_DECAY_NTICKS_PER_UPDATE, so it must already be defined.
   Factor the constant into a new minimal header,
   arena_decay_constants.h, that pulls nothing but jemalloc_preamble.h,
   and include it from both arena.h and tsd_internals.h.  arena_t is
   still added as a forward decl in tsd_internals.h -- including
   arena.h there would trigger arena_stats.h -> mutex.h -> tsd.h ->
   re-entry into this very file.

2. extent_dss.h previously included arena_types.h for the arena_t
   pointer type, but arena.h now includes extent_dss.h (it was a
   STRUCTS-section dep).  Forward-decl arena_t in extent_dss.h to
   break that cycle.

Additional forward decls in tcache.h and large.h (arena_t *).  These
were previously satisfied by the master include order loading
arena_types.h before everything else; with arena.h now in the EXTERNS
section, large.h and tcache.h are parsed earlier than arena.h, so
they need to declare arena_t themselves.

jemalloc_internal_externs.h's #include of arena_types.h was
vestigial -- the file uses no arena symbols.  Dropped.
2026-05-29 08:53:58 -07:00
..
cpp Reformat the codebase with the clang-format 18. 2026-03-10 18:14:33 -07: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 Consolidate arena_* header split into arena.h 2026-05-29 08:53:58 -07:00
extent.sh Use MALLOC_CONF rather than malloc_conf for tests. 2017-02-23 08:57:02 -08: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