Skip to content

[clr-interp] Workaround c++ compiler bug - #123732

Merged
davidwrighton merged 1 commit into
dotnet:mainfrom
davidwrighton:fix_unwind_issue
Jan 29, 2026
Merged

[clr-interp] Workaround c++ compiler bug#123732
davidwrighton merged 1 commit into
dotnet:mainfrom
davidwrighton:fix_unwind_issue

Conversation

@davidwrighton

@davidwrightondavidwrighton commented Jan 28, 2026

Copy link
Copy Markdown
Member

- Disable optimization on InterpCompiler::EmitStaticFieldAccess
- See https://developercommunity.visualstudio.com/t/noreturn-function-called-from-a-function/11035707 for details on the issue

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds a Windows ARM64-specific workaround for a C++ compiler issue by disabling optimizations around a problematic interpreter compiler routine.

Changes:

  • Disable compiler optimizations for a specific function on TARGET_WINDOWS && TARGET_ARM64 via #pragma optimize("", off/on).
  • Document the workaround with a link to the Visual Studio Developer Community report.

Comment threadsrc/coreclr/interpreter/compiler.cpp
Comment threadsrc/coreclr/interpreter/compiler.cpp
@davidwrighton

Copy link
Copy Markdown
MemberAuthor

/ba-g known infra failures

@davidwrighton
davidwrighton merged commit 1336003 into dotnet:mainJan 29, 2026
107 of 111 checks passed
@github-actionsgithub-actionsBot locked and limited conversation to collaborators Mar 1, 2026
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@davidwrighton@janvorli