Remove dead code: UltraHot, RingCache, FrontC23, Class5 Hotpath
(cherry-picked from 225b6fcc7, conflicts resolved)
This commit is contained in:
@ -40,8 +40,6 @@ extern pthread_t tiny_self_pt(void);
|
||||
// External TLS variables (from Box 5)
|
||||
// Phase 3d-B: TLS Cache Merge - Unified TLS SLL structure
|
||||
extern __thread TinyTLSSLL g_tls_sll[TINY_NUM_CLASSES];
|
||||
// Hot-class toggle: class5 (256B) dedicated TLS fast path
|
||||
extern int g_tiny_hotpath_class5;
|
||||
extern __thread TinyTLSList g_tls_lists[TINY_NUM_CLASSES];
|
||||
|
||||
// Box 5 helper (TLS push)
|
||||
@ -135,13 +133,9 @@ static inline int tiny_free_fast_ss(SuperSlab* ss, int slab_idx, void* base, uin
|
||||
g_free_via_ss_local[class_idx]++;
|
||||
#endif
|
||||
|
||||
// Box 5 integration: class5 can use dedicated TLS List hotpath
|
||||
// Box 5 integration
|
||||
extern int g_sfc_enabled;
|
||||
if (__builtin_expect(g_tiny_hotpath_class5 && class_idx == 5, 0)) {
|
||||
TinyTLSList* tls5 = &g_tls_lists[5];
|
||||
// Use guarded push for class5 to avoid sentinel/next poisoning during triage
|
||||
tls_list_push(tls5, base, 5);
|
||||
} else if (g_sfc_enabled) {
|
||||
if (g_sfc_enabled) {
|
||||
// Box 5-NEW: Try SFC (128-256 slots)
|
||||
if (!sfc_free_push(class_idx, base)) {
|
||||
// SFC full → skip caching, use slow path (return 0)
|
||||
|
||||
Reference in New Issue
Block a user