Remove unused Mid MT layer

This commit is contained in:
Moe Charm (CI)
2025-12-01 23:43:44 +09:00
parent 195c74756c
commit f1b7964ef9
8 changed files with 5 additions and 880 deletions

View File

@ -33,7 +33,6 @@ void* realloc(void* ptr, size_t size) {
#include "../hakmem_pool.h" // Mid registry lookup (failsafe for headerless Mid)
#include "../front/malloc_tiny_fast.h" // Phase 26: Front Gate Unification
#include "tiny_front_config_box.h" // Phase 4-Step3: Compile-time config for dead code elimination
#include "mid_free_route_box.h" // Phase 5-Step2: Mid MT free routing fix
// malloc wrapper - intercepts system malloc() calls
__thread uint64_t g_malloc_total_calls = 0;
@ -226,11 +225,6 @@ void free(void* ptr) {
}
#endif
// Phase 5-Step2: Mid Free Route Box (BEFORE classify_ptr)
// Quick fix for 19x free() slowdown: Try Mid MT registry first
// If found, route directly to mid_mt_free() and return
if (mid_free_route_try(ptr)) return;
// Classify pointer BEFORE early libc fallbacks to avoid misrouting Tiny pointers
// This is safe: classifier uses header probe and registry; does not allocate.
int is_hakmem_owned = 0;