-
Notifications
You must be signed in to change notification settings - Fork 5.3k
[clr-interp] Tracing fixes. #122467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
[clr-interp] Tracing fixes. #122467
Conversation
…ta, and update event_pipe to be a bit more resilient to interpreter codegen patterns - Fix rundown to be able to walk the interpreter code heaps - Fix the CodeHeapIterator implementation to have a correct move constructor/move operator - Tweak the eventpipe code to be able to ignore stack frames without a control_pc - Adjust rundownvalidation test to print out what condition failed. This fixes BinderTracingTest.ResolutionFlow and rundownvalidation
|
Tagging subscribers to this area: @BrzVlad, @janvorli, @kg |
There was a problem hiding this 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 fixes interpreter-related tracing issues by enabling rundown to walk interpreter code heaps and making event pipe more resilient to interpreter codegen patterns.
- Adds support for iterating over interpreter code heaps during rundown in addition to JIT heaps
- Fixes CodeHeapIterator to support move semantics correctly with proper resource management
- Updates event pipe stack walking to handle frames without valid control_pc values
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/tests/tracing/eventpipe/rundownvalidation/rundownvalidation.cs | Adds diagnostic logging to print out which rundown event conditions failed |
| src/coreclr/vm/eventtrace.cpp | Extends rundown to iterate both JIT and interpreter code heaps, and fixes code version checking to work with interpreter code |
| src/coreclr/vm/eventing/eventpipe/ep-rt-coreclr.cpp | Updates stack walk callback to skip frames without valid control_pc and adds debug assertions for expected scenarios |
| src/coreclr/vm/codeman.h | Refactors CodeHeapIterator to use RAII holder for proper resource management and adds m_codeType field to track code type |
| src/coreclr/vm/codeman.cpp | Implements the RAII holder for CodeHeapIterator and adds logic to distinguish between JIT and interpreter code headers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
|
@copilot open a new pull request to apply changes based on the comments in this thread |
Update rundown to dump the interpreter generated code data, and update event_pipe to be a bit more resilient to interpreter codegen patterns
This fixes BinderTracingTest.ResolutionFlow and rundownvalidation