Delete jemalloc_internal_includes.h (umbrella header)

After the per-TU explicit-include conversion in batches 1-7, no .c
file in src/ needs the umbrella anymore.  test/jemalloc_test.h.in is
the last consumer; it's the template for the header used by unit
and stress tests that want all of jemalloc's internals visible, so
its #include of the umbrella is replaced with the same set of
explicit includes the umbrella used to expand to.  No behavioral
change for tests.

With that, the umbrella is gone.  Every translation unit now
declares the headers it actually uses, and the hidden-transitive-
include patterns that motivated this cleanup are no longer possible
to introduce silently -- a missing include now fails at the failing
file rather than silently working because something upstream pulled
in the world.

Step 6 (Option B) of the cyclical-dep cleanup, complete.
This commit is contained in:
Slobodan Predolac 2026-05-27 19:28:21 -04:00 committed by Slobodan Predolac
parent d20b19f76b
commit 2502195964
2 changed files with 28 additions and 72 deletions

View file

@ -47,7 +47,20 @@ extern "C" {
# define JEMALLOC_JET
# define JEMALLOC_MANGLE
# include "jemalloc/internal/jemalloc_preamble.h"
# include "jemalloc/internal/jemalloc_internal_includes.h"
# include "jemalloc/internal/arena.h"
# include "jemalloc/internal/jemalloc_internal_externs.h"
# include "jemalloc/internal/large.h"
# include "jemalloc/internal/tcache.h"
# include "jemalloc/internal/prof.h"
# include "jemalloc/internal/background_thread.h"
# include "jemalloc/internal/jemalloc_internal_inlines_a.h"
# include "jemalloc/internal/arena_inlines_a.h"
# include "jemalloc/internal/jemalloc_internal_inlines_b.h"
# include "jemalloc/internal/tcache_inlines.h"
# include "jemalloc/internal/arena_inlines_b.h"
# include "jemalloc/internal/jemalloc_internal_inlines_c.h"
# include "jemalloc/internal/prof_inlines.h"
# include "jemalloc/internal/background_thread_inlines.h"
/******************************************************************************/
/*
@ -92,7 +105,20 @@ extern "C" {
# define JEMALLOC_JET
# include "jemalloc/internal/jemalloc_preamble.h"
# include "jemalloc/internal/jemalloc_internal_includes.h"
# include "jemalloc/internal/arena.h"
# include "jemalloc/internal/jemalloc_internal_externs.h"
# include "jemalloc/internal/large.h"
# include "jemalloc/internal/tcache.h"
# include "jemalloc/internal/prof.h"
# include "jemalloc/internal/background_thread.h"
# include "jemalloc/internal/jemalloc_internal_inlines_a.h"
# include "jemalloc/internal/arena_inlines_a.h"
# include "jemalloc/internal/jemalloc_internal_inlines_b.h"
# include "jemalloc/internal/tcache_inlines.h"
# include "jemalloc/internal/arena_inlines_b.h"
# include "jemalloc/internal/jemalloc_internal_inlines_c.h"
# include "jemalloc/internal/prof_inlines.h"
# include "jemalloc/internal/background_thread_inlines.h"
# include "jemalloc/internal/public_unnamespace.h"
# undef JEMALLOC_JET