未验证 提交 313baef6 编写于 作者: E Egor Bogatov 提交者: GitHub

JIT: Fix repeatable failure for max CALLSITE_DEPTH (#63966)

上级 a354bb15
......@@ -47,7 +47,9 @@ unsigned Compiler::fgCheckInlineDepthAndRecursion(InlineInfo* inlineInfo)
// This inline candidate has the same IL code buffer as an already
// inlined method does.
inlineResult->NoteFatal(InlineObservation::CALLSITE_IS_RECURSIVE);
break;
// No need to note CALLSITE_DEPTH we're already rejecting this candidate
return depth;
}
if (depth > InlineStrategy::IMPLEMENTATION_MAX_INLINE_DEPTH)
......
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// Found by Antigen
public class Runtime_63942
{
public static int Main()
{
var _ = 3.14.ToString();
return 100;
}
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<Optimize>True</Optimize>
<CLRTestBatchPreCommands><![CDATA[
$(CLRTestBatchPreCommands)
set COMPlus_EnableHWIntrinsic=0
set COMPlus_JITInlineDepth=0
set COMPlus_TieredCompilation=0
]]></CLRTestBatchPreCommands>
<BashCLRTestPreCommands><![CDATA[
$(BashCLRTestPreCommands)
export COMPlus_EnableHWIntrinsic=0
export COMPlus_JITInlineDepth=0
export COMPlus_TieredCompilation=0
]]></BashCLRTestPreCommands>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(MSBuildProjectName).cs" />
</ItemGroup>
</Project>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册