Skip to content

Conversation

@rcj1
Copy link
Contributor

@rcj1 rcj1 commented Oct 22, 2025

No description provided.

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 introduces a new IsDiagnosticsILStub() method on MethodDesc that combines checks for both IL stubs and async thunk methods, then replaces existing IsILStub() calls throughout the codebase to hide these methods from diagnostics scenarios like stack walks, profiler notifications, and debugger callbacks.

Key Changes

  • Added IsDiagnosticsILStub() method that returns true for both IL stubs and async thunk methods
  • Updated stack walking, exception handling, profiling, and debugging code to use the new method
  • Updated logging messages to reflect the new terminology

Reviewed Changes

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

Show a summary per file
File Description
src/coreclr/vm/method.hpp Declared the new IsDiagnosticsILStub() method
src/coreclr/vm/method.inl Implemented IsDiagnosticsILStub() to check both IsILStub() and IsAsyncThunkMethod()
src/coreclr/vm/stackwalk.cpp Updated stack walk filtering to use new method and updated log messages
src/coreclr/vm/jitinterface.cpp Updated inline candidate check to exclude diagnostics IL stubs
src/coreclr/vm/i386/excepx86.cpp Updated exception handling callbacks to skip diagnostics IL stubs
src/coreclr/vm/exinfo.cpp Updated exception info callbacks to skip diagnostics IL stubs
src/coreclr/vm/excep.cpp Updated stack trace building to skip diagnostics IL stubs
src/coreclr/debug/ee/debugger.cpp Updated debugger assertion to verify no diagnostics IL stubs
src/coreclr/debug/daccess/dacdbiimpl.cpp Updated DAC method classification to identify diagnostics IL stubs

@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @mangod9
See info in area-owners.md if you want to be subscribed.

@rcj1
Copy link
Contributor Author

rcj1 commented Oct 22, 2025

Out of scope:

  • Changes to DAC etc naming for async thunks
  • Changes in Debugger::Step()

@rcj1
Copy link
Contributor Author

rcj1 commented Oct 24, 2025

/ba-g timeouts

@rcj1 rcj1 merged commit 70fd4cf into dotnet:main Oct 24, 2025
87 of 98 checks passed
@rcj1 rcj1 deleted the isilstub branch October 24, 2025 00:13
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.

3 participants