Skip to content

Conversation

@janvorli
Copy link
Member

The interpreter didn't check that localloc is not valid in funclets. Couple of coreclr tests were failing due to that.

To make this work properly, I've removed marking blocks with BBClauseTry as it was not used for anything and preventing the check for code being in funclet working properly.

The interpreter didn't check that localloc is not valid in funclets.
Couple of coreclr tests were failing due to that.

To make this work properly, I've removed marking blocks with BBClauseTry
as it was not used for anything and preventing the check for code being
in funclet working properly.
@janvorli janvorli added this to the 11.0.0 milestone Oct 27, 2025
@janvorli janvorli self-assigned this Oct 27, 2025
Copilot AI review requested due to automatic review settings October 27, 2025 13:18
@janvorli janvorli requested review from BrzVlad and kg as code owners October 27, 2025 13:18
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 adds validation to prevent localloc instructions inside funclets (exception handlers) in the interpreter, which is not supported. The change fixes failing CoreCLR tests by properly detecting when code is executing within a funclet context.

Key Changes:

  • Removed unused BBClauseTry enum value that was preventing proper funclet detection
  • Added validation check to reject localloc instructions inside funclets with appropriate error message

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/coreclr/interpreter/compiler.h Removes unused BBClauseTry enum value from InterpBBClauseType
src/coreclr/interpreter/compiler.cpp Removes code that marked try blocks and adds validation to reject localloc in funclets

@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @BrzVlad, @janvorli, @kg
See info in area-owners.md if you want to be subscribed.

@janvorli
Copy link
Member Author

/ba-g the windows arm64 infra is down and there change is doesn't have anything arm64 specific.

@janvorli janvorli merged commit a9deee8 into dotnet:main Oct 28, 2025
94 of 98 checks passed
@janvorli janvorli deleted the check-for-localloc-in-funclet branch October 28, 2025 00:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants