-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Removing 2 rooted types related to EventSource FeatureSwitch #48104
Conversation
I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label. |
<!-- Accessed via private reflection by an external tracing controller. --> | ||
<type fullname="System.Diagnostics.Tracing.EventPipe*" /> | ||
<!-- The private Event methods are accessed by private reflection in the base EventSource class. --> | ||
<type fullname="System.Diagnostics.Tracing.NativeRuntimeEventSource" /> |
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.
I think I understand why we can unroot the EventPipe
types (see discussion).
But why can we unroot NativeRuntimeEventSource
?
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.
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.
@LakshanF For unrooting NativeRuntimeEventSource, can you either wait until my other PR related to NativeRuntimeEventSource is merged, or just remove the EventPipe type for now? We need to do some more testing around this. As you can see the Checked CI leg is failing because EventListeners are no longer getting the events.
<!-- Accessed via private reflection by an external tracing controller. --> | ||
<type fullname="System.Diagnostics.Tracing.EventPipe*" /> | ||
<!-- The private Event methods are accessed by private reflection in the base EventSource class. --> | ||
<type fullname="System.Diagnostics.Tracing.NativeRuntimeEventSource" /> |
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.
Just tested this on a test branch with my changes and I think unrooting this will require more work for us... Could you change this to only unroot the EventPipe
type for now?
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.
Assuming CI passes, this looks awesome to me.
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.
LGTM - thanks Lakshan!
The types, EventPipe and NativeRuntimeEventSource, should no longer need to be rooted.
Goes towards fixing #43657