mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-06-19 02:15:38 +03:00
Consolidate prof_* and tcache_* header splits
Both components had a four-way split (_types, _structs, _externs, _inlines) that predates explicit per-file includes. With the edata <-> prof_types coupling broken in the prior commit, merging _types + _structs + _externs no longer risks an include cycle. - prof.h replaces prof_types.h + prof_structs.h + prof_externs.h. - tcache.h replaces tcache_types.h + tcache_structs.h + tcache_externs.h. prof_inlines.h and tcache_inlines.h stay separate: prof_inlines.h sits at the bottom of the dependency layering, and tcache_inlines.h's include of arena_externs.h is the asymmetric cycle-breaker that keeps the arena <-> tcache symbol cycle from becoming an include cycle.
This commit is contained in:
parent
09d419ded5
commit
6396e44a3c
16 changed files with 666 additions and 664 deletions
|
|
@ -3,9 +3,9 @@
|
|||
|
||||
#include "jemalloc/internal/thread_event.h"
|
||||
#include "jemalloc/internal/thread_event_registry.h"
|
||||
#include "jemalloc/internal/tcache_externs.h"
|
||||
#include "jemalloc/internal/tcache.h"
|
||||
#include "jemalloc/internal/peak_event.h"
|
||||
#include "jemalloc/internal/prof_externs.h"
|
||||
#include "jemalloc/internal/prof.h"
|
||||
#include "jemalloc/internal/stats.h"
|
||||
|
||||
static malloc_mutex_t uevents_mu;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue