Skip to content

Conversation

@janvorli
Copy link
Member

@janvorli janvorli commented Jan 5, 2026

After the change that removed FEATURE_EH_FUNCLETS, the POPFRAMES stackwalk option is no longer used. Also all code under STACKWALKER_MAY_POP_FRAMES ifdef can be removed.

After the change that removed FEATURE_EH_FUNCLETS, the POPFRAMES
option is no longer used.
@janvorli janvorli added this to the 11.0.0 milestone Jan 5, 2026
@janvorli janvorli requested a review from jkotas January 5, 2026 23:41
@janvorli janvorli self-assigned this Jan 5, 2026
Copilot AI review requested due to automatic review settings January 5, 2026 23:41
@janvorli
Copy link
Member Author

janvorli commented Jan 5, 2026

cc: @am11

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 removes the obsolete POPFRAMES stackwalk option and all code guarded by STACKWALKER_MAY_POP_FRAMES preprocessor directives. These became obsolete after the removal of FEATURE_EH_FUNCLETS. The changes are purely code deletion with no functional impact on remaining code paths.

Key changes:

  • Removed the POPFRAMES constant definition from the stackwalk flags
  • Removed all STACKWALKER_MAY_POP_FRAMES conditional compilation blocks
  • Simplified control flow by removing POPFRAMES-specific if-else branches

Reviewed changes

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

File Description
src/coreclr/vm/threads.h Removes the POPFRAMES constant definition (0x0004) from stackwalk flags
src/coreclr/vm/stackwalk.cpp Removes all POPFRAMES-related assertions, conditional compilation blocks, and frame-popping logic; simplifies control flow to retain only the non-POPFRAMES code paths

Co-authored-by: Jan Kotas <jkotas@microsoft.com>
@jkotas
Copy link
Member

jkotas commented Jan 6, 2026

/ba-g DeadLetter

@jkotas jkotas merged commit 3ac259c into dotnet:main Jan 6, 2026
95 of 98 checks passed
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