Infrastructure and build updates
- Update build configuration and flags - Add missing header files and dependencies - Update TLS list implementation with proper scoping - Fix various compilation warnings and issues - Update debug ring and tiny allocation infrastructure - Update benchmark results documentation Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
This commit is contained in:
@ -2,13 +2,13 @@ core/box/free_local_box.o: core/box/free_local_box.c \
|
||||
core/box/free_local_box.h core/hakmem_tiny_superslab.h \
|
||||
core/superslab/superslab_types.h core/hakmem_tiny_superslab_constants.h \
|
||||
core/superslab/superslab_inline.h core/superslab/superslab_types.h \
|
||||
core/tiny_debug_ring.h core/tiny_remote.h \
|
||||
core/tiny_debug_ring.h core/hakmem_build_flags.h core/tiny_remote.h \
|
||||
core/superslab/../tiny_box_geometry.h \
|
||||
core/superslab/../hakmem_tiny_superslab_constants.h \
|
||||
core/superslab/../hakmem_tiny_config.h core/tiny_debug_ring.h \
|
||||
core/tiny_remote.h core/hakmem_tiny_superslab_constants.h \
|
||||
core/hakmem_build_flags.h core/box/free_publish_box.h core/hakmem_tiny.h \
|
||||
core/hakmem_trace.h core/hakmem_tiny_mini_mag.h
|
||||
core/box/free_publish_box.h core/hakmem_tiny.h core/hakmem_trace.h \
|
||||
core/hakmem_tiny_mini_mag.h
|
||||
core/box/free_local_box.h:
|
||||
core/hakmem_tiny_superslab.h:
|
||||
core/superslab/superslab_types.h:
|
||||
@ -16,6 +16,7 @@ core/hakmem_tiny_superslab_constants.h:
|
||||
core/superslab/superslab_inline.h:
|
||||
core/superslab/superslab_types.h:
|
||||
core/tiny_debug_ring.h:
|
||||
core/hakmem_build_flags.h:
|
||||
core/tiny_remote.h:
|
||||
core/superslab/../tiny_box_geometry.h:
|
||||
core/superslab/../hakmem_tiny_superslab_constants.h:
|
||||
@ -23,7 +24,6 @@ core/superslab/../hakmem_tiny_config.h:
|
||||
core/tiny_debug_ring.h:
|
||||
core/tiny_remote.h:
|
||||
core/hakmem_tiny_superslab_constants.h:
|
||||
core/hakmem_build_flags.h:
|
||||
core/box/free_publish_box.h:
|
||||
core/hakmem_tiny.h:
|
||||
core/hakmem_trace.h:
|
||||
|
||||
@ -2,14 +2,14 @@ core/box/free_publish_box.o: core/box/free_publish_box.c \
|
||||
core/box/free_publish_box.h core/hakmem_tiny_superslab.h \
|
||||
core/superslab/superslab_types.h core/hakmem_tiny_superslab_constants.h \
|
||||
core/superslab/superslab_inline.h core/superslab/superslab_types.h \
|
||||
core/tiny_debug_ring.h core/tiny_remote.h \
|
||||
core/tiny_debug_ring.h core/hakmem_build_flags.h core/tiny_remote.h \
|
||||
core/superslab/../tiny_box_geometry.h \
|
||||
core/superslab/../hakmem_tiny_superslab_constants.h \
|
||||
core/superslab/../hakmem_tiny_config.h core/tiny_debug_ring.h \
|
||||
core/tiny_remote.h core/hakmem_tiny_superslab_constants.h \
|
||||
core/hakmem_build_flags.h core/hakmem_tiny.h core/hakmem_trace.h \
|
||||
core/hakmem_tiny_mini_mag.h core/tiny_route.h core/tiny_ready.h \
|
||||
core/hakmem_tiny.h core/box/mailbox_box.h
|
||||
core/hakmem_tiny.h core/hakmem_trace.h core/hakmem_tiny_mini_mag.h \
|
||||
core/tiny_route.h core/tiny_ready.h core/hakmem_tiny.h \
|
||||
core/box/mailbox_box.h
|
||||
core/box/free_publish_box.h:
|
||||
core/hakmem_tiny_superslab.h:
|
||||
core/superslab/superslab_types.h:
|
||||
@ -17,6 +17,7 @@ core/hakmem_tiny_superslab_constants.h:
|
||||
core/superslab/superslab_inline.h:
|
||||
core/superslab/superslab_types.h:
|
||||
core/tiny_debug_ring.h:
|
||||
core/hakmem_build_flags.h:
|
||||
core/tiny_remote.h:
|
||||
core/superslab/../tiny_box_geometry.h:
|
||||
core/superslab/../hakmem_tiny_superslab_constants.h:
|
||||
@ -24,7 +25,6 @@ core/superslab/../hakmem_tiny_config.h:
|
||||
core/tiny_debug_ring.h:
|
||||
core/tiny_remote.h:
|
||||
core/hakmem_tiny_superslab_constants.h:
|
||||
core/hakmem_build_flags.h:
|
||||
core/hakmem_tiny.h:
|
||||
core/hakmem_trace.h:
|
||||
core/hakmem_tiny_mini_mag.h:
|
||||
|
||||
@ -2,13 +2,13 @@ core/box/free_remote_box.o: core/box/free_remote_box.c \
|
||||
core/box/free_remote_box.h core/hakmem_tiny_superslab.h \
|
||||
core/superslab/superslab_types.h core/hakmem_tiny_superslab_constants.h \
|
||||
core/superslab/superslab_inline.h core/superslab/superslab_types.h \
|
||||
core/tiny_debug_ring.h core/tiny_remote.h \
|
||||
core/tiny_debug_ring.h core/hakmem_build_flags.h core/tiny_remote.h \
|
||||
core/superslab/../tiny_box_geometry.h \
|
||||
core/superslab/../hakmem_tiny_superslab_constants.h \
|
||||
core/superslab/../hakmem_tiny_config.h core/tiny_debug_ring.h \
|
||||
core/tiny_remote.h core/hakmem_tiny_superslab_constants.h \
|
||||
core/hakmem_build_flags.h core/box/free_publish_box.h core/hakmem_tiny.h \
|
||||
core/hakmem_trace.h core/hakmem_tiny_mini_mag.h
|
||||
core/box/free_publish_box.h core/hakmem_tiny.h core/hakmem_trace.h \
|
||||
core/hakmem_tiny_mini_mag.h
|
||||
core/box/free_remote_box.h:
|
||||
core/hakmem_tiny_superslab.h:
|
||||
core/superslab/superslab_types.h:
|
||||
@ -16,6 +16,7 @@ core/hakmem_tiny_superslab_constants.h:
|
||||
core/superslab/superslab_inline.h:
|
||||
core/superslab/superslab_types.h:
|
||||
core/tiny_debug_ring.h:
|
||||
core/hakmem_build_flags.h:
|
||||
core/tiny_remote.h:
|
||||
core/superslab/../tiny_box_geometry.h:
|
||||
core/superslab/../hakmem_tiny_superslab_constants.h:
|
||||
@ -23,7 +24,6 @@ core/superslab/../hakmem_tiny_config.h:
|
||||
core/tiny_debug_ring.h:
|
||||
core/tiny_remote.h:
|
||||
core/hakmem_tiny_superslab_constants.h:
|
||||
core/hakmem_build_flags.h:
|
||||
core/box/free_publish_box.h:
|
||||
core/hakmem_tiny.h:
|
||||
core/hakmem_trace.h:
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
core/box/front_gate_box.o: core/box/front_gate_box.c \
|
||||
core/box/front_gate_box.h core/hakmem_tiny.h core/hakmem_build_flags.h \
|
||||
core/hakmem_trace.h core/hakmem_tiny_mini_mag.h \
|
||||
core/tiny_alloc_fast_sfc.inc.h core/hakmem_tiny.h core/box/tls_sll_box.h \
|
||||
core/box/../ptr_trace.h core/box/../hakmem_tiny_config.h \
|
||||
core/box/../hakmem_build_flags.h core/box/../tiny_region_id.h \
|
||||
core/box/../hakmem_build_flags.h
|
||||
core/tiny_alloc_fast_sfc.inc.h core/hakmem_tiny.h core/tiny_nextptr.h \
|
||||
core/box/tls_sll_box.h core/box/../ptr_trace.h \
|
||||
core/box/../hakmem_tiny_config.h core/box/../hakmem_build_flags.h \
|
||||
core/box/../tiny_region_id.h core/box/../hakmem_build_flags.h
|
||||
core/box/front_gate_box.h:
|
||||
core/hakmem_tiny.h:
|
||||
core/hakmem_build_flags.h:
|
||||
@ -12,6 +12,7 @@ core/hakmem_trace.h:
|
||||
core/hakmem_tiny_mini_mag.h:
|
||||
core/tiny_alloc_fast_sfc.inc.h:
|
||||
core/hakmem_tiny.h:
|
||||
core/tiny_nextptr.h:
|
||||
core/box/tls_sll_box.h:
|
||||
core/box/../ptr_trace.h:
|
||||
core/box/../hakmem_tiny_config.h:
|
||||
|
||||
@ -5,7 +5,8 @@ core/box/front_gate_classifier.o: core/box/front_gate_classifier.c \
|
||||
core/hakmem_tiny_superslab_constants.h \
|
||||
core/box/../superslab/superslab_inline.h \
|
||||
core/box/../superslab/superslab_types.h core/tiny_debug_ring.h \
|
||||
core/tiny_remote.h core/box/../superslab/../tiny_box_geometry.h \
|
||||
core/hakmem_build_flags.h core/tiny_remote.h \
|
||||
core/box/../superslab/../tiny_box_geometry.h \
|
||||
core/box/../superslab/../hakmem_tiny_superslab_constants.h \
|
||||
core/box/../superslab/../hakmem_tiny_config.h \
|
||||
core/box/../tiny_debug_ring.h core/box/../tiny_remote.h \
|
||||
@ -15,8 +16,7 @@ core/box/front_gate_classifier.o: core/box/front_gate_classifier.c \
|
||||
core/box/../hakmem.h core/box/../hakmem_config.h \
|
||||
core/box/../hakmem_features.h core/box/../hakmem_sys.h \
|
||||
core/box/../hakmem_whale.h core/box/../hakmem_tiny_config.h \
|
||||
core/box/../hakmem_super_registry.h core/box/../hakmem_tiny_superslab.h \
|
||||
core/box/../pool_tls_registry.h
|
||||
core/box/../hakmem_super_registry.h core/box/../hakmem_tiny_superslab.h
|
||||
core/box/front_gate_classifier.h:
|
||||
core/box/../tiny_region_id.h:
|
||||
core/box/../hakmem_build_flags.h:
|
||||
@ -26,6 +26,7 @@ core/hakmem_tiny_superslab_constants.h:
|
||||
core/box/../superslab/superslab_inline.h:
|
||||
core/box/../superslab/superslab_types.h:
|
||||
core/tiny_debug_ring.h:
|
||||
core/hakmem_build_flags.h:
|
||||
core/tiny_remote.h:
|
||||
core/box/../superslab/../tiny_box_geometry.h:
|
||||
core/box/../superslab/../hakmem_tiny_superslab_constants.h:
|
||||
@ -44,4 +45,3 @@ core/box/../hakmem_whale.h:
|
||||
core/box/../hakmem_tiny_config.h:
|
||||
core/box/../hakmem_super_registry.h:
|
||||
core/box/../hakmem_tiny_superslab.h:
|
||||
core/box/../pool_tls_registry.h:
|
||||
|
||||
@ -298,6 +298,14 @@ static void hak_init_impl(void) {
|
||||
extern void hak_tiny_prewarm_tls_cache(void);
|
||||
hak_tiny_prewarm_tls_cache();
|
||||
HAKMEM_LOG("TLS cache pre-warmed for %d classes\n", TINY_NUM_CLASSES);
|
||||
// After TLS prewarm, cascade some hot blocks into SFC to raise early hit rate
|
||||
{
|
||||
extern int g_sfc_enabled;
|
||||
if (g_sfc_enabled) {
|
||||
extern void sfc_cascade_from_tls_initial(void);
|
||||
sfc_cascade_from_tls_initial();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
g_initializing = 0;
|
||||
|
||||
@ -2,12 +2,12 @@ core/box/mailbox_box.o: core/box/mailbox_box.c core/box/mailbox_box.h \
|
||||
core/hakmem_tiny_superslab.h core/superslab/superslab_types.h \
|
||||
core/hakmem_tiny_superslab_constants.h core/superslab/superslab_inline.h \
|
||||
core/superslab/superslab_types.h core/tiny_debug_ring.h \
|
||||
core/tiny_remote.h core/superslab/../tiny_box_geometry.h \
|
||||
core/hakmem_build_flags.h core/tiny_remote.h \
|
||||
core/superslab/../tiny_box_geometry.h \
|
||||
core/superslab/../hakmem_tiny_superslab_constants.h \
|
||||
core/superslab/../hakmem_tiny_config.h core/tiny_debug_ring.h \
|
||||
core/tiny_remote.h core/hakmem_tiny_superslab_constants.h \
|
||||
core/hakmem_build_flags.h core/hakmem_tiny.h core/hakmem_trace.h \
|
||||
core/hakmem_tiny_mini_mag.h
|
||||
core/hakmem_tiny.h core/hakmem_trace.h core/hakmem_tiny_mini_mag.h
|
||||
core/box/mailbox_box.h:
|
||||
core/hakmem_tiny_superslab.h:
|
||||
core/superslab/superslab_types.h:
|
||||
@ -15,6 +15,7 @@ core/hakmem_tiny_superslab_constants.h:
|
||||
core/superslab/superslab_inline.h:
|
||||
core/superslab/superslab_types.h:
|
||||
core/tiny_debug_ring.h:
|
||||
core/hakmem_build_flags.h:
|
||||
core/tiny_remote.h:
|
||||
core/superslab/../tiny_box_geometry.h:
|
||||
core/superslab/../hakmem_tiny_superslab_constants.h:
|
||||
@ -22,7 +23,6 @@ core/superslab/../hakmem_tiny_config.h:
|
||||
core/tiny_debug_ring.h:
|
||||
core/tiny_remote.h:
|
||||
core/hakmem_tiny_superslab_constants.h:
|
||||
core/hakmem_build_flags.h:
|
||||
core/hakmem_tiny.h:
|
||||
core/hakmem_trace.h:
|
||||
core/hakmem_tiny_mini_mag.h:
|
||||
|
||||
Reference in New Issue
Block a user