Split ctl handlers by mallctl namespace

Move mallctl handler implementations out of src/ctl.c into namespace-oriented ctl_* modules, while keeping the mallctl tree and dispatch machinery centralized in ctl.c.

Add shared ctl mallctl helper macros and thin ctl arena/stat interfaces needed by the split modules. Wire the new sources into Makefile.in and MSVC project files.

Keep behavior unchanged; this is intended as a readability and navigation refactor.
This commit is contained in:
Slobodan Predolac 2026-05-27 16:13:09 -07:00
parent 4e903a0a32
commit bcfc9b27cd
26 changed files with 3670 additions and 3468 deletions

View file

@ -109,6 +109,15 @@ C_SRCS := $(srcroot)src/jemalloc.c \
$(srcroot)src/ckh.c \
$(srcroot)src/counter.c \
$(srcroot)src/ctl.c \
$(srcroot)src/ctl_arena.c \
$(srcroot)src/ctl_background_thread.c \
$(srcroot)src/ctl_config.c \
$(srcroot)src/ctl_opt.c \
$(srcroot)src/ctl_prof.c \
$(srcroot)src/ctl_stats.c \
$(srcroot)src/ctl_thread.c \
$(srcroot)src/ctl_tcache.c \
$(srcroot)src/ctl_utilization.c \
$(srcroot)src/decay.c \
$(srcroot)src/div.c \
$(srcroot)src/ecache.c \