[runtime] Fix DISABLE_REFLECTION_EMIT build.
[mono.git] / mono / mini / aot-compiler.c
index c2dd1b28eebe419ab43ba79e3b25c250012db779..125110303adc583d0bf57c0457bfd357e021114b 100644 (file)
@@ -7917,6 +7917,7 @@ compile_method (MonoAotCompile *acfg, MonoMethod *method)
 
        g_hash_table_insert (acfg->method_to_cfg, cfg->orig_method, cfg);
 
+       /* Update global stats while holding a lock. */
        mono_update_jit_stats (cfg);
 
        /*