Remove dependency on dtrace when building shared GC

This commit is contained in:
Peter Zhu 2024-07-12 11:38:42 -04:00
parent db3472d84c
commit 93489d536b

View File

@ -25,7 +25,10 @@
#include "darray.h"
#include "gc/gc.h"
#include "gc/gc_impl.h"
#include "probes.h"
#ifndef BUILDING_SHARED_GC
# include "probes.h"
#endif
#include "debug_counter.h"
#include "internal/sanitizers.h"
@ -8840,8 +8843,13 @@ gc_prof_timer_stop(rb_objspace_t *objspace)
}
}
#define RUBY_DTRACE_GC_HOOK(name) \
#ifdef BUILDING_SHARED_GC
# define RUBY_DTRACE_GC_HOOK(name)
#else
# define RUBY_DTRACE_GC_HOOK(name) \
do {if (RUBY_DTRACE_GC_##name##_ENABLED()) RUBY_DTRACE_GC_##name();} while (0)
#endif
static inline void
gc_prof_mark_timer_start(rb_objspace_t *objspace)
{