Fix mid free routing and relax mid W_MAX
This commit is contained in:
@ -155,6 +155,12 @@ static inline int free_tiny_fast(void* ptr) {
|
||||
// 4. BASE を計算して Unified Cache に push
|
||||
void* base = (void*)((char*)ptr - 1);
|
||||
|
||||
// 5. Superslab 登録確認(誤分類防止)
|
||||
SuperSlab* ss_guard = hak_super_lookup(ptr);
|
||||
if (__builtin_expect(!(ss_guard && ss_guard->magic == SUPERSLAB_MAGIC), 0)) {
|
||||
return 0; // hakmem 管理外 → 通常 free 経路へ
|
||||
}
|
||||
|
||||
// Cross-thread free detection (Larson MT crash fix, ENV gated)
|
||||
{
|
||||
static __thread int g_larson_fix = -1;
|
||||
|
||||
Reference in New Issue
Block a user