mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 21:23:06 +00:00
Drop the jemalloc_internal_includes.h umbrella
Convert the production source files in src/ (69 .c/.cpp) and test/jemalloc_test.h.in to list the headers they actually use, then delete the umbrella. Three consolidated headers (peak_event.h, prof_sys.h, sz.h) also gain explicit transitive includes. Every translation unit now declares what it uses. A missing include now fails at the failing file rather than silently working because something upstream pulled in the world.
This commit is contained in:
@@ -47,7 +47,21 @@ 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/bin_inlines.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 +106,21 @@ 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/bin_inlines.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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user