Disable v4 monitor.enter fastpath under aot and llvm
authorRodrigo Kumpera <kumpera@gmail.com>
Tue, 24 May 2011 23:16:20 +0000 (20:16 -0300)
committerRodrigo Kumpera <kumpera@gmail.com>
Tue, 24 May 2011 23:16:20 +0000 (20:16 -0300)
mono/mini/method-to-ir.c

index 195c749117f2ddfa10183aafd66ba7ebc91cf263..dcfbb246eb4d2fd637e0ae883a513ebf3cab038c 100644 (file)
@@ -4453,6 +4453,10 @@ mini_emit_inst_for_method (MonoCompile *cfg, MonoMethod *cmethod, MonoMethodSign
                if (strcmp (cmethod->name, "Enter") == 0 && fsig->param_count == 2) {
                        MonoMethod *fast_method = NULL;
 
+                       /*FIXME fix LLVM and AOT support*/
+                       if (COMPILE_LLVM (cfg) || cfg->compile_aot)
+                               return NULL;
+
                        /* Avoid infinite recursion */
                        if (cfg->method->wrapper_type == MONO_WRAPPER_UNKNOWN && !strcmp (cfg->method->name, "FastMonitorEnterV4"))
                                return NULL;