-
Notifications
You must be signed in to change notification settings - Fork 5.3k
[EventPipe] Remove thread lock and cleanup ThreadSessionState lifecycle #118415
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
Merged
mdh1418
merged 24 commits into
dotnet:main
from
mdh1418:ep_remove_thread_lock_and_optimize_tss_cleanup
Jan 21, 2026
Merged
Changes from 21 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
9269b35
Remove the EventPipe thread lock
noahfalk 9c2b736
[EventPipe] Fix convert_buffer_to_read_only
mdh1418 ea88c43
[EventPipe] Fixup thread lock removal assertions
mdh1418 daf7143
Fix inconsistent volatile qualifier
mdh1418 1fe4ccf
Guard ep_buffer_convert_to_read_only under buffer_manager lock
mdh1418 cffdfb2
Cleanup unneeded fields
mdh1418 09a6577
Fix spacing and update comments
mdh1418 afe42a5
Refactor write_all_buffers_to_file_v4 loop
mdh1418 eee4607
[EventPipe][BufferManager] Track thread_session_state
mdh1418 6674546
Store thread in SequencePoint Map
mdh1418 285e3a3
Revamp thread_session_state cleanup logic
mdh1418 f5b2893
Add minimal snapshot optimization
mdh1418 fc31c98
Address feedback
mdh1418 2f57141
Update more comments
mdh1418 34061e2
Extend snapshot to all reader thread variations
mdh1418 ad4ef72
Synchronize thread unregister with session disable
mdh1418 204616b
Add snapshot threads helper
mdh1418 8049191
Add context for reader thread signaling
mdh1418 161a11a
Allow iterating over empty thread snapshots
mdh1418 c489497
Restrict scope of current_timestamp_boundary
mdh1418 3633a3a
Keep session alive to signal reading
mdh1418 104c226
Add more clarifying comments
mdh1418 ae22bf0
Address feedback
mdh1418 34a0b6e
Rename ep_session_suspend_write_event and clarify comments
mdh1418 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.