Files
hakmem/core/hakmem_smallmid.c
Moe Charm (CI) 093f362231 Add Page Box layer for C7 class optimization
- Implement tiny_page_box.c/h: per-thread page cache between UC and Shared Pool
- Integrate Page Box into Unified Cache refill path
- Remove legacy SuperSlab implementation (merged into smallmid)
- Add HAKMEM_TINY_PAGE_BOX_CLASSES env var for selective class enabling
- Update bench_random_mixed.c with Page Box statistics

Current status: Implementation safe, no regressions.
Page Box ON/OFF shows minimal difference - pool strategy needs tuning.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 15:31:44 +09:00

35 lines
775 B
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// hakmem_smallmid_superslab.c - Stub implementation
// 元の SmallMid SuperSlab backend は archive/smallmid/ に退避済み。
// 現在のビルドでは SmallMid は使用しないため、このファイルは空スタブ。
#include "hakmem_smallmid.h"
// Stub 実装SmallMid は無効なので、全て「何もしない / 常に失敗」)
bool smallmid_is_in_range(size_t size) {
(void)size;
return false;
}
void smallmid_init(void) {
// No-op
}
void* smallmid_alloc(size_t size) {
(void)size;
return NULL; // 呼び出し側は他の経路にフォールバック
}
void smallmid_free(void* ptr) {
(void)ptr;
// No-op
}
void smallmid_thread_exit(void) {
// No-op
}
bool smallmid_is_enabled(void) {
return false;
}