Skip to content

Conversation

@Evangelink
Copy link
Member

Use [MethodImpl(NoInlining)] on .NET Framework to prevent JIT from inlining small methods, which would remove stack frames. The assertions now check for the DummyTestClass method frames instead of lambda frames.

Fixes #5109

Use [MethodImpl(NoInlining)] on .NET Framework to prevent JIT from inlining
small methods, which would remove stack frames. The assertions now check for
the DummyTestClass method frames instead of lambda frames.

Fixes #5109
Copy link
Member

@Youssef1313 Youssef1313 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm concerned about not fully knowing what have changed over time for these tests. But given this is not any product change, I'm approving.

@Evangelink Evangelink merged commit d48d7fe into main Feb 4, 2026
10 checks passed
@Evangelink Evangelink deleted the dev/amauryleve/repro-stacktrace-issue-5109 branch February 4, 2026 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Investigate why stacktrace are empty in release mode

3 participants