Closed
Description
Repro:
dotnet run -c release
on Linux:
using System.Runtime.CompilerServices;
for (int i = 0; ; i++)
{
Console.WriteLine(i);
Work(false);
}
[MethodImpl(MethodImplOptions.NoInlining)]
static void Work(bool f)
{
if (f)
DoesNotExist(null);
}
[UnsafeAccessor(UnsafeAccessorKind.Method)]
extern static void DoesNotExist([UnsafeAccessorType("DoesNotExist")] object a);
Actual result:
Crash with no error message after several thousands of iterations
Expected result:
Runs indefinitely