static gboolean
summarizer_state_init (SummarizerGlobalState *state, MonoNativeThreadId current, int *my_index)
{
- *my_index = 0;
gint32 started_state = mono_atomic_cas_i32 (&state->has_owner, 1 /* set */, 0 /* compare */);
gboolean not_started = started_state == 0;
if (not_started) {
{
static SummarizerGlobalState state;
- int current_idx = 0;
+ int current_idx;
MonoNativeThreadId current = mono_native_thread_id_get ();
gboolean thread_given_control = summarizer_state_init (&state, current, ¤t_idx);