Boxify superslab registry, add bench profile, and document C7 hotpath experiments
This commit is contained in:
@ -4,6 +4,7 @@
|
||||
// Date: 2025-11-28
|
||||
|
||||
#include "hakmem_tiny_superslab_internal.h"
|
||||
#include "hakmem_super_registry.h"
|
||||
|
||||
// ============================================================================
|
||||
// ACE (Adaptive Cache Engine) State
|
||||
@ -140,8 +141,12 @@ void ace_observe_and_decide(int k) {
|
||||
int ss_count = 0;
|
||||
uint32_t total_live = 0;
|
||||
|
||||
for (int i = 0; i < SUPER_REG_SIZE; i++) {
|
||||
SuperRegEntry* e = &g_super_reg[i];
|
||||
SuperRegEntry* reg = super_reg_entries();
|
||||
int reg_cap = super_reg_effective_size();
|
||||
if (!reg || reg_cap <= 0) return;
|
||||
|
||||
for (int i = 0; i < reg_cap; i++) {
|
||||
SuperRegEntry* e = ®[i];
|
||||
|
||||
// Atomic read (thread-safe)
|
||||
uintptr_t base = atomic_load_explicit(
|
||||
|
||||
Reference in New Issue
Block a user