Files
hakmem/archive/engines/hakx/hakx_front_tiny.h
Moe Charm (CI) 52386401b3 Debug Counters Implementation - Clean History
Major Features:
- Debug counter infrastructure for Refill Stage tracking
- Free Pipeline counters (ss_local, ss_remote, tls_sll)
- Diagnostic counters for early return analysis
- Unified larson.sh benchmark runner with profiles
- Phase 6-3 regression analysis documentation

Bug Fixes:
- Fix SuperSlab disabled by default (HAKMEM_TINY_USE_SUPERSLAB)
- Fix profile variable naming consistency
- Add .gitignore patterns for large files

Performance:
- Phase 6-3: 4.79 M ops/s (has OOM risk)
- With SuperSlab: 3.13 M ops/s (+19% improvement)

This is a clean repository without large log files.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-05 12:31:14 +09:00

38 lines
781 B
C

#pragma once
#include <stddef.h>
#include <stdint.h>
#include "hakmem.h"
#include "hakmem_tiny.h"
#include "hakmem_super_registry.h"
#ifdef __cplusplus
extern "C" {
#endif
// HAKX Tiny front: minimal fast path on top of HAKMEM Tiny
#define HAKX_TINY_FRONT_MAX 128u
__attribute__((always_inline))
static inline int hakx_tiny_can_handle(size_t size) {
return (size <= HAKX_TINY_FRONT_MAX);
}
__attribute__((always_inline))
static inline void* hakx_tiny_alloc(size_t size) {
return hak_tiny_alloc(size);
}
__attribute__((always_inline))
static inline int hakx_tiny_maybe_free(void* ptr) {
if (!ptr) return 1;
if (hak_tiny_owner_slab(ptr) || hak_super_lookup(ptr)) {
hak_tiny_free(ptr);
return 1;
}
return 0;
}
#ifdef __cplusplus
}
#endif