Skip to content
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

Merged
merged 10 commits into from
Feb 10, 2021

Conversation

LakshanF
Copy link
Member

The types, EventPipe and NativeRuntimeEventSource, should no longer need to be rooted.
Goes towards fixing #43657

@dotnet-issue-labeler
Copy link

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" />
Copy link
Member

@eerhardt eerhardt Feb 10, 2021

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, EventPipe work has already being submitted.

My understanding is that we no longer require to root NativeRuntimeEventSource as well. @sywhang might be able to give more context on this

Copy link
Contributor

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" />
Copy link
Contributor

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?

Copy link
Member

@eerhardt eerhardt left a 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.

Copy link
Contributor

@sywhang sywhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - thanks Lakshan!

@LakshanF LakshanF merged commit 69b1c01 into dotnet:master Feb 10, 2021
@LakshanF LakshanF deleted the EvtSrcFeatSwtch branch February 10, 2021 21:15
@ghost ghost locked as resolved and limited conversation to collaborators Mar 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants