-
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
#ifdef out code that requires FEATURE_EVENT_TRACE #91895
Conversation
Tagging subscribers to this area: @dotnet/gc Issue DetailsThis PR follows #90847 and removes some more code when FEATURE_EVENT_TRACE is not defined. Surfaced as part of dotnet/runtimelab#2396 Not sure about the cc @EgorBo Thanks
|
LGTM, but leaving for @dotnet/gc to approve/merge |
you should not remove the methods as GC is still expecting to call them. for the changed related to the |
The one in We can also just remove the assert - it doesn't add a lot of value |
I have no preference here. |
Sorry I closed this by mistake.
I've gone ahead and just removed the assert so |
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, but leaving for @dotnet/gc to review/merge
@cshung, can you please review and merge? |
Is this fix going to be merged into a .NET 8.x release? For our game console ports of NativeAOT, we do not enable FEATURE_EVENT_TRACE, so we’re running into compile errors when upgrading our runtime support to .NET 8. |
/backport to release/8.0-staging |
Started backporting to release/8.0-staging: https://github.com/dotnet/runtime/actions/runs/6867071751 |
We will take it for consideration. We do not typically backport fixes for custom configuration like this one, but I think we can make an exception for this one given that it is a regression from .NET 7, it is shortly after release and the fix is very low risk. |
This PR follows #90847 and removes some more code when FEATURE_EVENT_TRACE is not defined. Surfaced as part of dotnet/runtimelab#2396
Not sure about the
gcrhenv.cpp
change. Maybe I should be removing all theDiagGC*
methods and#ifdef
ing their usages ?cc @EgorBo
Thanks