jemalloc/src
Bin Liu 9c1a484e1d Use SEC in PAC to reduce lock contention on the ecaches
Add a small extent cache in front of the PAC ecaches. Allocs and dallocs
that fit are served from per-shard SEC bins without taking the ecache
mutex; overflow falls through to the backing ecaches, including
ecache_pinned for pinned extents.

The feature is gated behind experimental_pac_sec_nshards (default 0,
disabled). To support independent HPA and PAC SEC instances,
sec_alloc/sec_dalloc/sec_fill take an explicit shard argument, with HPA
and PAC using separate TSD shard slots.
2026-06-24 10:54:34 -07:00
..
arena.c Make single-TU internal helpers static; remove dead hpa_expand/hpa_shrink/pac_reset 2026-06-11 11:45:05 -04:00
arenas_management.c Collapse arena_inlines_a/b and jemalloc_internal_inlines_b into arena_inlines.h 2026-06-04 11:32:53 -04:00
background_thread.c Collapse arena_inlines_a/b and jemalloc_internal_inlines_b into arena_inlines.h 2026-06-04 11:32:53 -04:00
base.c Cap the base-block growth heuristic 2026-06-16 10:20:15 -07:00
bin.c De-export test-only helpers via JET_EXTERN / #ifdef JEMALLOC_JET; declare in unit tests, not headers 2026-06-11 11:45:05 -04:00
bin_info.c Drop the jemalloc_internal_includes.h umbrella 2026-06-04 11:32:53 -04:00
bitmap.c De-export test-only helpers via JET_EXTERN / #ifdef JEMALLOC_JET; declare in unit tests, not headers 2026-06-11 11:45:05 -04:00
buf_writer.c De-export test-only helpers via JET_EXTERN / #ifdef JEMALLOC_JET; declare in unit tests, not headers 2026-06-11 11:45:05 -04:00
cache_bin.c Drop the jemalloc_internal_includes.h umbrella 2026-06-04 11:32:53 -04:00
ckh.c De-export test-only helpers via JET_EXTERN / #ifdef JEMALLOC_JET; declare in unit tests, not headers 2026-06-11 11:45:05 -04:00
conf.c Use SEC in PAC to reduce lock contention on the ecaches 2026-06-24 10:54:34 -07:00
counter.c Drop the jemalloc_internal_includes.h umbrella 2026-06-04 11:32:53 -04:00
ctl.c Use SEC in PAC to reduce lock contention on the ecaches 2026-06-24 10:54:34 -07:00
decay.c Drop the jemalloc_internal_includes.h umbrella 2026-06-04 11:32:53 -04:00
div.c Add the div module, which allows fast division by dynamic values. 2017-12-21 14:25:43 -08:00
ecache.c Drop the jemalloc_internal_includes.h umbrella 2026-06-04 11:32:53 -04:00
edata.c Drop the jemalloc_internal_includes.h umbrella 2026-06-04 11:32:53 -04:00
edata_cache.c Drop the jemalloc_internal_includes.h umbrella 2026-06-04 11:32:53 -04:00
ehooks.c Make ehooks_default_merge static (export was vestigial after merge fast-path removal) 2026-06-11 11:45:05 -04:00
emap.c Drop the jemalloc_internal_includes.h umbrella 2026-06-04 11:32:53 -04:00
eset.c Drop the jemalloc_internal_includes.h umbrella 2026-06-04 11:32:53 -04:00
exp_grow.c Drop the jemalloc_internal_includes.h umbrella 2026-06-04 11:32:53 -04:00
extent.c Drop the jemalloc_internal_includes.h umbrella 2026-06-04 11:32:53 -04:00
extent_dss.c Collapse arena_inlines_a/b and jemalloc_internal_inlines_b into arena_inlines.h 2026-06-04 11:32:53 -04:00
extent_mmap.c Drop the jemalloc_internal_includes.h umbrella 2026-06-04 11:32:53 -04:00
fxp.c Drop the jemalloc_internal_includes.h umbrella 2026-06-04 11:32:53 -04:00
hpa.c Use SEC in PAC to reduce lock contention on the ecaches 2026-06-24 10:54:34 -07:00
hpa_central.c Drop the jemalloc_internal_includes.h umbrella 2026-06-04 11:32:53 -04:00
hpa_hooks.c Drop the jemalloc_internal_includes.h umbrella 2026-06-04 11:32:53 -04:00
hpa_utils.c Drop the jemalloc_internal_includes.h umbrella 2026-06-04 11:32:53 -04:00
hpdata.c De-export test-only helpers via JET_EXTERN / #ifdef JEMALLOC_JET; declare in unit tests, not headers 2026-06-11 11:45:05 -04:00
inspect.c Drop the jemalloc_internal_includes.h umbrella 2026-06-04 11:32:53 -04:00
jemalloc.c Use SEC in PAC to reduce lock contention on the ecaches 2026-06-24 10:54:34 -07:00
jemalloc_cpp.cpp Replace experimental_infallible_new with compile-time flag 2026-06-06 09:50:37 -04:00
jemalloc_fork.c Drop the jemalloc_internal_includes.h umbrella 2026-06-04 11:32:53 -04:00
jemalloc_init.c Collapse arena_inlines_a/b and jemalloc_internal_inlines_b into arena_inlines.h 2026-06-04 11:32:53 -04:00
large.c Collapse arena_inlines_a/b and jemalloc_internal_inlines_b into arena_inlines.h 2026-06-04 11:32:53 -04:00
log.c Drop the jemalloc_internal_includes.h umbrella 2026-06-04 11:32:53 -04:00
malloc_dispatch.c Drop the jemalloc_internal_includes.h umbrella 2026-06-04 11:32:53 -04:00
malloc_io.c Drop the jemalloc_internal_includes.h umbrella 2026-06-04 11:32:53 -04:00
mutex.c Drop the jemalloc_internal_includes.h umbrella 2026-06-04 11:32:53 -04:00
nstime.c De-export test-only helpers via JET_EXTERN / #ifdef JEMALLOC_JET; declare in unit tests, not headers 2026-06-11 11:45:05 -04:00
pa.c Use SEC in PAC to reduce lock contention on the ecaches 2026-06-24 10:54:34 -07:00
pa_extra.c Use SEC in PAC to reduce lock contention on the ecaches 2026-06-24 10:54:34 -07:00
pac.c Use SEC in PAC to reduce lock contention on the ecaches 2026-06-24 10:54:34 -07:00
pages.c Fix -Wmissing-prototypes, -Wmissing-variable-declarations, and -Wstrict-prototypes warnings 2026-06-05 19:10:22 -04:00
peak_event.c Drop the jemalloc_internal_includes.h umbrella 2026-06-04 11:32:53 -04:00
prof.c De-export test-only helpers via JET_EXTERN / #ifdef JEMALLOC_JET; declare in unit tests, not headers 2026-06-11 11:45:05 -04:00
prof_data.c De-export test-only helpers via JET_EXTERN / #ifdef JEMALLOC_JET; declare in unit tests, not headers 2026-06-11 11:45:05 -04:00
prof_log.c De-export test-only helpers via JET_EXTERN / #ifdef JEMALLOC_JET; declare in unit tests, not headers 2026-06-11 11:45:05 -04:00
prof_recent.c De-export test-only helpers via JET_EXTERN / #ifdef JEMALLOC_JET; declare in unit tests, not headers 2026-06-11 11:45:05 -04:00
prof_stack_range.c Drop the jemalloc_internal_includes.h umbrella 2026-06-04 11:32:53 -04:00
prof_stats.c Drop the jemalloc_internal_includes.h umbrella 2026-06-04 11:32:53 -04:00
prof_sys.c Drop the jemalloc_internal_includes.h umbrella 2026-06-04 11:32:53 -04:00
psset.c Drop the jemalloc_internal_includes.h umbrella 2026-06-04 11:32:53 -04:00
rtree.c Drop the jemalloc_internal_includes.h umbrella 2026-06-04 11:32:53 -04:00
safety_check.c Drop the jemalloc_internal_includes.h umbrella 2026-06-04 11:32:53 -04:00
san.c Drop the jemalloc_internal_includes.h umbrella 2026-06-04 11:32:53 -04:00
san_bump.c Drop the jemalloc_internal_includes.h umbrella 2026-06-04 11:32:53 -04:00
sc.c De-export test-only helpers via JET_EXTERN / #ifdef JEMALLOC_JET; declare in unit tests, not headers 2026-06-11 11:45:05 -04:00
sec.c Use SEC in PAC to reduce lock contention on the ecaches 2026-06-24 10:54:34 -07:00
stats.c Use SEC in PAC to reduce lock contention on the ecaches 2026-06-24 10:54:34 -07:00
sz.c Drop the jemalloc_internal_includes.h umbrella 2026-06-04 11:32:53 -04:00
tcache.c Replace JET_WRAP_ with JET_EXTERN_INLINE macro 2026-06-18 13:02:23 -04:00
test_hooks.c Remove safety check abort mallctl 2026-06-02 13:24:23 -04:00
thread_event.c Fix -Wmissing-prototypes, -Wmissing-variable-declarations, and -Wstrict-prototypes warnings 2026-06-05 19:10:22 -04:00
thread_event_registry.c Drop the jemalloc_internal_includes.h umbrella 2026-06-04 11:32:53 -04:00
ticker.c Drop the jemalloc_internal_includes.h umbrella 2026-06-04 11:32:53 -04:00
ticker.py Add ticker_geom_t. 2021-02-04 14:10:43 -08:00
tsd.c Collapse arena_inlines_a/b and jemalloc_internal_inlines_b into arena_inlines.h 2026-06-04 11:32:53 -04:00
util.c Drop the jemalloc_internal_includes.h umbrella 2026-06-04 11:32:53 -04:00
witness.c Drop the jemalloc_internal_includes.h umbrella 2026-06-04 11:32:53 -04:00
zone.c Drop the jemalloc_internal_includes.h umbrella 2026-06-04 11:32:53 -04:00