Fix C7 warm/TLS Release path and unify debug instrumentation

This commit is contained in:
Moe Charm (CI)
2025-12-05 23:41:01 +09:00
parent 96c2988381
commit d17ec46628
29 changed files with 1314 additions and 123 deletions

View File

@ -9,6 +9,7 @@
#include "tiny_debug_ring.h"
#include "tiny_remote.h"
#include "box/tiny_next_ptr_box.h" // Box API: next pointer read/write
#include "box/c7_meta_used_counter_box.h"
extern int g_debug_remote_guard;
extern int g_tiny_safe_free_strict;
@ -311,6 +312,7 @@ static inline void* slab_freelist_pop(SlabHandle* h) {
void* next = tiny_next_read(h->meta->class_idx, ptr); // Box API: next pointer read
h->meta->freelist = next;
h->meta->used++;
c7_meta_used_note(h->meta->class_idx, C7_META_USED_SRC_FRONT);
// Optional freelist mask clear when freelist becomes empty
do {
static int g_mask_en2 = -1;