Phase 7 + Pool TLS 1.5b stabilization:\n- Add build hygiene (dep tracking, flag consistency, print-flags)\n- Add build.sh + verify_build.sh (unified recipe, freshness check)\n- Quiet verbose logs behind HAKMEM_DEBUG_VERBOSE\n- A/B free safety via HAKMEM_TINY_SAFE_FREE (mincore strict vs boundary)\n- Tweak Tiny header path to reduce noise; Pool TLS free guard optimized\n- Fix mimalloc link retention (--no-as-needed + force symbol)\n- Add docs/BUILD_PHASE7_POOL_TLS.md (cheatsheet)

This commit is contained in:
Moe Charm (CI)
2025-11-09 11:50:18 +09:00
parent cf5bdf9c0a
commit 0da9f8cba3
10 changed files with 349 additions and 48 deletions

View File

@ -159,9 +159,11 @@ inline void* hak_alloc_at(size_t size, hak_callsite_t site) {
// This handles the gap when ACE is disabled or failed
static _Atomic int gap_alloc_count = 0;
int count = atomic_fetch_add(&gap_alloc_count, 1);
#if HAKMEM_DEBUG_VERBOSE
if (count < 3) {
fprintf(stderr, "[HAKMEM] INFO: Using mmap for mid-range size=%zu (ACE disabled or failed)\n", size);
}
#endif
#if HAKMEM_DEBUG_TIMING
HKM_TIME_START(t_mmap);
#endif
@ -199,4 +201,3 @@ inline void* hak_alloc_at(size_t size, hak_callsite_t site) {
}
#endif // HAK_ALLOC_API_INC_H