Skip to content

Conversation

@davidwrighton
Copy link
Member

Update rundown to dump the interpreter generated code data, 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

…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
@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.

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

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

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

@davidwrighton
Copy link
Member Author

@copilot open a new pull request to apply changes based on the comments in this thread

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.

1 participant