未验证 提交 dda28fc3 编写于 作者: F Fred Silberberg 提交者: GitHub

Merge pull request #25607 from 333fred/reduce-frames

Reduce number of stack frames to prevent StackOverflow until we have …
......@@ -25,19 +25,21 @@ public void OverflowOnFluentCall()
bool isDebug = false;
#endif
// TODO: Number of frames was reduced by 50 to pass tests. We need to return to original counts after https://github.com/dotnet/roslyn/issues/25603
// is fixed to determine the bug here
switch (IntPtr.Size * 8)
{
case 32 when isDebug:
numberFluentCalls = 510;
numberFluentCalls = 460;
break;
case 32 when !isDebug:
numberFluentCalls = 1350;
numberFluentCalls = 1300;
break;
case 64 when isDebug:
numberFluentCalls = 225;
numberFluentCalls = 175;
break;
case 64 when !isDebug:
numberFluentCalls = 620;
numberFluentCalls = 570;
break;
default:
throw new Exception($"unexpected pointer size {IntPtr.Size}");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册