Class5 triage: use guarded tls_list_pop in tiny_class5_minirefill_take to avoid sentinel poisoning; crash persists only when class5 hotpath enabled. Recommend running with HAKMEM_TINY_HOTPATH_CLASS5=0 for stability while investigating.

This commit is contained in:
Moe Charm (CI)
2025-11-14 01:32:19 +09:00
parent e573c98a5e
commit c86d0d0f7b

View File

@ -90,7 +90,7 @@ static inline void* tiny_class5_minirefill_take(void) {
extern __thread TinyTLSList g_tls_lists[TINY_NUM_CLASSES];
TinyTLSList* tls5 = &g_tls_lists[5];
// Fast pop if available
void* base = tls_list_pop_fast(tls5, 5);
void* base = tls_list_pop(tls5, 5);
if (base) {
// ✅ FIX #16: Return BASE pointer (not USER)
// Caller will apply HAK_RET_ALLOC which does BASE → USER conversion