-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
NoGCRegion Callback #82045
NoGCRegion Callback #82045
Conversation
Note regarding the This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, to please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change. |
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. |
Tagging subscribers to this area: @dotnet/gc Issue DetailsWIP - testing only
|
58de138
to
e647be2
Compare
3e1c057
to
6048304
Compare
src/coreclr/nativeaot/System.Private.CoreLib/src/System/GC.NativeAot.cs
Outdated
Show resolved
Hide resolved
894f573
to
dd909fa
Compare
dd909fa
to
cbdd477
Compare
src/coreclr/nativeaot/System.Private.CoreLib/src/System/Runtime/RuntimeImports.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/Resources/Strings.resx
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/Resources/Strings.resx
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/Resources/Strings.resx
Outdated
Show resolved
Hide resolved
src/coreclr/nativeaot/System.Private.CoreLib/src/System/GC.NativeAot.cs
Outdated
Show resolved
Hide resolved
What about if the thread is rescheduled right after we check the cookie, but before actually doing the work? It seems that the cookie is reducing probability of the race condition, but it is not actually reliably preventing the race condition. |
VM side - LGTM! @Maoni0 should sign-off on the GC side. |
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.
other than the couple of comments above, this LGTM!
e557c26
to
9f1ca40
Compare
Co-authored-by: Jan Kotas <jkotas@microsoft.com>
9f1ca40
to
0ecb53f
Compare
This PR implements the RegisterNoGCCallback API proposal.
Fixes #66039