Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Remove now obsolete POPFRAMES - #122905

#122905
Merged
jkotas merged 2 commits into
dotnet:maindotnet/runtime:mainfrom
janvorli:remove-popframesjanvorli/runtime:remove-popframesCopy head branch name to clipboard
Jan 6, 2026
Merged

Remove now obsolete POPFRAMES#122905
jkotas merged 2 commits into
dotnet:maindotnet/runtime:mainfrom
janvorli:remove-popframesjanvorli/runtime:remove-popframesCopy head branch name to clipboard

Conversation

@janvorli

@janvorli janvorli commented Jan 5, 2026

Copy link
Copy Markdown
Member

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 janvorli added the area-ExceptionHandling-coreclr only use for closed issues label Jan 5, 2026
@janvorli

janvorli commented Jan 5, 2026

Copy link
Copy Markdown
Member Author

cc: @am11

Copilot AI 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

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

Comment thread src/coreclr/vm/threads.h
Co-authored-by: Jan Kotas <jkotas@microsoft.com>
@jkotas

jkotas commented Jan 6, 2026

Copy link
Copy Markdown
Member

/ba-g DeadLetter

@jkotas
jkotas merged commit 3ac259c into dotnet:main Jan 6, 2026
95 of 98 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Feb 5, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-ExceptionHandling-coreclr only use for closed issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.