diff options
-rw-r--r-- | mono/metadata/profiler.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mono/metadata/profiler.c b/mono/metadata/profiler.c index c1850434cc4..db4c08b6b4c 100644 --- a/mono/metadata/profiler.c +++ b/mono/metadata/profiler.c @@ -894,6 +894,7 @@ update_callback (volatile gpointer *location, gpointer new_, volatile gint32 *co void \ mono_profiler_raise_ ## name params \ { \ + if (!mono_profiler_state.startup_done) return; \ for (MonoProfilerHandle h = mono_profiler_state.profilers; h; h = h->next) { \ MonoProfiler ## type ## Callback cb = h->name ## _cb; \ if (cb) \ |