[jit] Fix the lookup of the AOT version of Interlocked.Exchange<T> in full-aot mode...
authorZoltan Varga <vargaz@gmail.com>
Wed, 16 Apr 2014 16:05:29 +0000 (18:05 +0200)
committerZoltan Varga <vargaz@gmail.com>
Wed, 16 Apr 2014 16:05:46 +0000 (18:05 +0200)
mono/mini/mini.c

index cbf64fd3b2173dea2f091400d5e7d981d4e39a5e..110540968a2a6121ddced521f828225725b73724 100644 (file)
@@ -5910,7 +5910,7 @@ mono_jit_compile_method_inner (MonoMethod *method, MonoDomain *target_domain, in
                        else
                                mono_lookup_pinvoke_call (method, NULL, NULL);
                }
-               nm = mono_marshal_get_native_wrapper (method, check_for_pending_exc, FALSE);
+               nm = mono_marshal_get_native_wrapper (method, check_for_pending_exc, mono_aot_only);
                code = mono_get_addr_from_ftnptr (mono_compile_method (nm));
                jinfo = mono_jit_info_table_find (target_domain, code);
                if (!jinfo)