Remove unused Mid MT layer
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user