// tiny_static_route_box.h - Static routing table for policy_snapshot bypass (Phase 3 C3) // Eliminates per-malloc policy_snapshot + learner evaluation overhead // ENV gate: HAKMEM_TINY_STATIC_ROUTE=0/1 (default 0) #pragma once #include "smallobject_policy_v7_box.h" typedef struct { int inited; SmallRouteKind route_kind[8]; // C0-C7 static route (determined at init, no learner update) } TinyStaticRoute; extern TinyStaticRoute g_tiny_static_route; // Initialize static route table (called once, at library load time) // Returns 1 if static routing is enabled and initialized, 0 otherwise int tiny_static_route_init_once(void); // Get static route for class_idx, or 0 if not enabled // (Returns route_kind, or 0 if disabled/uninitialized) SmallRouteKind tiny_static_route_get_kind(int class_idx); // Refresh from ENV (for bench_apply_profile() sync) void tiny_static_route_refresh_from_env(void); // Check if static routing is enabled (cached ENV value) int tiny_static_route_enabled(void);