Front Gate: registry-first classification (no ptr-1 deref); Pool TLS via registry to avoid unsafe header reads.\nTLS-SLL: splice head normalization, remove false misalignment guard, drop heuristic normalization; add carve/splice debug logs.\nRefill: add one-shot sanity checks (range/stride) at P0 and non-P0 boundaries (debug-only).\nInfra: provide ptr_trace_dump_now stub in release to fix linking.\nVerified: bench_fixed_size_hakmem 200000 1024 128 passes (Debug/Release), no SEGV.
This commit is contained in:
@ -107,4 +107,7 @@ static inline void ptr_trace_dump_now(const char* reason) { (void)reason; }
|
||||
#define PTR_NEXT_READ(tag, cls, node, off, out_var) \
|
||||
((out_var) = *(void**)((uint8_t*)(node) + (off)))
|
||||
|
||||
// Always provide a stub for release builds so callers can link
|
||||
static inline void ptr_trace_dump_now(const char* reason) { (void)reason; }
|
||||
|
||||
#endif // HAKMEM_PTR_TRACE
|
||||
|
||||
Reference in New Issue
Block a user