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:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user