Temporary workaround for #83792 (#83794)
authorKatelyn Gadd <kg@luminance.org>
Thu, 23 Mar 2023 02:00:21 +0000 (19:00 -0700)
committerGitHub <noreply@github.com>
Thu, 23 Mar 2023 02:00:21 +0000 (19:00 -0700)
The inlining changes have caused us to run some stuff in the interpreter in AOT configuration that used to run in AOT, which is somehow causing some floating point tests to fail that pass in interp-only mode. This workaround makes the tests work again.

src/mono/mono/mini/interp/transform.c

index 91c6852..18651d6 100644 (file)
@@ -2875,6 +2875,10 @@ interp_method_check_inlining (TransformData *td, MonoMethod *method, MonoMethodS
        if (g_list_find (td->dont_inline, method))
                return FALSE;
 
+       // temp workaround for https://github.com/dotnet/runtime/issues/83792 -kg
+       if (mono_interp_jit_call_supported(method, csignature))
+               return FALSE;
+
        return TRUE;
 }