- 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>
35 lines
775 B
C
35 lines
775 B
C
// 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;
|
||
}
|