diff --git a/core/tiny_publish.c b/core/tiny_publish.c index 9e2d1ff0..a1925d0d 100644 --- a/core/tiny_publish.c +++ b/core/tiny_publish.c @@ -18,6 +18,7 @@ void tiny_publish_notify(int class_idx, SuperSlab* ss, int slab_idx) { g_pub_notify_calls[class_idx]++; tiny_debug_ring_record(TINY_RING_EVENT_SUPERSLAB_PUBLISH, (uint16_t)class_idx, ss, (uintptr_t)slab_idx); // One-shot visibility trace (env: HAKMEM_TINY_RF_TRACE) +#if !HAKMEM_BUILD_RELEASE static int trace_en = -1; if (__builtin_expect(trace_en == -1, 0)) { const char* e = getenv("HAKMEM_TINY_RF_TRACE"); @@ -30,5 +31,6 @@ void tiny_publish_notify(int class_idx, SuperSlab* ss, int slab_idx) { fprintf(stderr, "[PUBTRACE] notify class=%d ss=%p slab=%d\n", class_idx, (void*)ss, slab_idx); } } +#endif mailbox_box_publish(class_idx, ss, slab_idx); }