Drop umbrella include from 10 more .c files (batch 3)

Converted: hpa_hooks, san_bump, sz, cache_bin, bitmap, hpa_central,
witness, fxp, buf_writer, edata_cache.

No latent hermeticity bugs in headers this batch -- a few .c files
just needed previously-transitive includes added (e.g. hpa_central.c
needed hpa.h for hpa_supported()).

Step 6 (Option B) of the cyclical-dep cleanup, batch 3 of N.
This commit is contained in:
Slobodan Predolac 2026-05-27 18:56:21 -04:00 committed by Slobodan Predolac
parent 89440d0fd3
commit da18bdc169
10 changed files with 18 additions and 13 deletions

View file

@ -1,7 +1,7 @@
#include "jemalloc/internal/jemalloc_preamble.h"
#include "jemalloc/internal/jemalloc_internal_includes.h"
#include "jemalloc/internal/assert.h"
#include "jemalloc/internal/bitmap.h"
/******************************************************************************/

View file

@ -1,7 +1,8 @@
#include "jemalloc/internal/jemalloc_preamble.h"
#include "jemalloc/internal/jemalloc_internal_includes.h"
#include "jemalloc/internal/buf_writer.h"
#include "jemalloc/internal/jemalloc_internal_inlines_a.h"
#include "jemalloc/internal/jemalloc_internal_inlines_c.h"
#include "jemalloc/internal/malloc_io.h"
static void *

View file

@ -1,6 +1,6 @@
#include "jemalloc/internal/jemalloc_preamble.h"
#include "jemalloc/internal/jemalloc_internal_includes.h"
#include "jemalloc/internal/base.h"
#include "jemalloc/internal/bit_util.h"
#include "jemalloc/internal/cache_bin.h"
#include "jemalloc/internal/safety_check.h"

View file

@ -1,5 +1,7 @@
#include "jemalloc/internal/jemalloc_preamble.h"
#include "jemalloc/internal/jemalloc_internal_includes.h"
#include "jemalloc/internal/edata_cache.h"
#include "jemalloc/internal/witness.h"
bool
edata_cache_init(edata_cache_t *edata_cache, base_t *base) {

View file

@ -1,7 +1,7 @@
#include "jemalloc/internal/jemalloc_preamble.h"
#include "jemalloc/internal/jemalloc_internal_includes.h"
#include "jemalloc/internal/fxp.h"
#include "jemalloc/internal/malloc_io.h"
static bool
fxp_isdigit(char c) {

View file

@ -1,6 +1,6 @@
#include "jemalloc/internal/jemalloc_preamble.h"
#include "jemalloc/internal/jemalloc_internal_includes.h"
#include "jemalloc/internal/hpa.h"
#include "jemalloc/internal/hpa_central.h"
#include "jemalloc/internal/tsd.h"
#include "jemalloc/internal/witness.h"

View file

@ -1,8 +1,9 @@
#include "jemalloc/internal/jemalloc_preamble.h"
#include "jemalloc/internal/jemalloc_internal_includes.h"
#include "jemalloc/internal/hpa_hooks.h"
#include "jemalloc/internal/jemalloc_probe.h"
#include "jemalloc/internal/nstime.h"
#include "jemalloc/internal/pages.h"
static void *hpa_hooks_map(size_t size);
static void hpa_hooks_unmap(void *ptr, size_t size);

View file

@ -1,11 +1,12 @@
#include "jemalloc/internal/jemalloc_preamble.h"
#include "jemalloc/internal/jemalloc_internal_includes.h"
#include "jemalloc/internal/san_bump.h"
#include "jemalloc/internal/edata_cache.h"
#include "jemalloc/internal/ehooks.h"
#include "jemalloc/internal/extent.h"
#include "jemalloc/internal/mutex.h"
#include "jemalloc/internal/pac.h"
#include "jemalloc/internal/san.h"
#include "jemalloc/internal/ehooks.h"
#include "jemalloc/internal/edata_cache.h"
#include "jemalloc/internal/san_bump.h"
static bool san_bump_grow_locked(tsdn_t *tsdn, san_bump_alloc_t *sba,
pac_t *pac, ehooks_t *ehooks, size_t size);

View file

@ -1,5 +1,5 @@
#include "jemalloc/internal/jemalloc_preamble.h"
#include "jemalloc/internal/jemalloc_internal_includes.h"
#include "jemalloc/internal/sz.h"
JEMALLOC_ALIGNED(CACHELINE)

View file

@ -1,8 +1,8 @@
#include "jemalloc/internal/jemalloc_preamble.h"
#include "jemalloc/internal/jemalloc_internal_includes.h"
#include "jemalloc/internal/assert.h"
#include "jemalloc/internal/malloc_io.h"
#include "jemalloc/internal/witness.h"
void
witness_init(witness_t *witness, const char *name, witness_rank_t rank,