X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmini%2Fdriver.c;h=297179bf86cabaa76b112108bb7a977d9c65db1f;hb=53d0bba46cfa7ed86f77c0f722bdd5b16215c3b4;hp=f8d485292afd01fb50f4b7e7fc14c08e261704bd;hpb=3109b7cfebf7e4ec635fff7da9c09055f3ea6ee7;p=mono.git diff --git a/mono/mini/driver.c b/mono/mini/driver.c index f8d485292af..297179bf86c 100644 --- a/mono/mini/driver.c +++ b/mono/mini/driver.c @@ -1420,7 +1420,7 @@ mono_jit_parse_options (int argc, char * argv[]) opt->break_on_exc = TRUE; } else if (strcmp (argv [i], "--stats") == 0) { mono_counters_enable (-1); - mono_stats.enabled = TRUE; + InterlockedWriteBool (&mono_stats.enabled, TRUE); mono_jit_stats.enabled = TRUE; } else if (strcmp (argv [i], "--break") == 0) { if (i+1 >= argc){ @@ -1767,7 +1767,7 @@ mono_main (int argc, char* argv[]) mono_print_vtable = TRUE; } else if (strcmp (argv [i], "--stats") == 0) { mono_counters_enable (-1); - mono_stats.enabled = TRUE; + InterlockedWriteBool (&mono_stats.enabled, TRUE); mono_jit_stats.enabled = TRUE; #ifndef DISABLE_AOT } else if (strcmp (argv [i], "--aot") == 0) {