mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-06-02 02:04:20 +03:00
Replaces #include "jemalloc_internal_includes.h" with explicit per-symbol includes in five small TUs: src/edata.c -> edata.h src/exp_grow.c -> exp_grow.h src/ticker.c -> ticker.h src/bin_info.c -> assert.h, bin_info.h src/counter.c -> counter.h, witness.h One latent hermeticity bug surfaced: sz.h's sz_large_size_classes_disabled() inline references opt_disable_large_size_classes (declared in jemalloc_internal_externs.h) but sz.h didn't include that header. Worked under the umbrella but breaks once consumers stop including everything. Added the include to sz.h so it stands on its own. Step 6 (Option B) of the cyclical-dep cleanup, batch 1 of N.
6 lines
212 B
C
6 lines
212 B
C
#include "jemalloc/internal/jemalloc_preamble.h"
|
|
|
|
#include "jemalloc/internal/edata.h"
|
|
|
|
ph_gen(, edata_avail, edata_t, avail_link, edata_esnead_comp)
|
|
ph_gen(, edata_heap, edata_t, heap_link, edata_snad_comp)
|