[wasm] Fix test_0_conv_i under interp.
[mono.git] / mono / mini / driver.c
index f293f7c6803ff1e3dc488d9d694711479610b208..a364415e2575b91e95966579e838fdb30c633f2f 100644 (file)
@@ -1421,7 +1421,7 @@ mono_jit_parse_options (int argc, char * argv[])
                } else if (strcmp (argv [i], "--stats") == 0) {
                        mono_counters_enable (-1);
                        InterlockedWriteBool (&mono_stats.enabled, TRUE);
-                       mono_jit_stats.enabled = TRUE;
+                       InterlockedWriteBool (&mono_jit_stats.enabled, TRUE);
                } else if (strcmp (argv [i], "--break") == 0) {
                        if (i+1 >= argc){
                                fprintf (stderr, "Missing method name in --break command line option\n");
@@ -1768,7 +1768,7 @@ mono_main (int argc, char* argv[])
                } else if (strcmp (argv [i], "--stats") == 0) {
                        mono_counters_enable (-1);
                        InterlockedWriteBool (&mono_stats.enabled, TRUE);
-                       mono_jit_stats.enabled = TRUE;
+                       InterlockedWriteBool (&mono_jit_stats.enabled, TRUE);
 #ifndef DISABLE_AOT
                } else if (strcmp (argv [i], "--aot") == 0) {
                        error_if_aot_unsupported ();