Fix C7 warm/TLS Release path and unify debug instrumentation
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user