Skip to content

Conversation

@jakobbotsch
Copy link
Member

FromStack(1) and FromStackDMI(1) rely on the test entry points to not be inlined into the test executor, so ensure these are NoInlining.

Fix #123279

`FromStack(1)` and `FromStackDMI(1)` rely on the test entry points to
not be inlined into the test executor, so ensure these are NoInlining.
@jakobbotsch jakobbotsch requested review from VSadov and Copilot January 19, 2026 12:14
@github-actions github-actions bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Jan 19, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes flaky async reflection tests by adding NoInlining attributes to test entry points that depend on specific stack frame information. When these tests are inlined by the test executor, the StackFrame constructor with level=1 parameter would skip the wrong frame, causing test failures.

Changes:

  • Added [MethodImpl(MethodImplOptions.NoInlining)] to the FromStack test method
  • Added [MethodImpl(MethodImplOptions.NoInlining)] to the FromStackDMI test method

Copy link
Member

@VSadov VSadov left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test Failure: _reflection::Async2Reflection.FromStackDMI(1)

2 participants