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

Call GC.WaitForPendingFinalizer before PrepareMethod #165

Conversation

echesakov
Copy link
Contributor

This seems to be sufficient to prevent JIT output corruption by the finalizer thread triggering a finalizer method compilation (e.g. such as in #164). Tested on Linux/arm Linux/x64 by pmi-ing S.P.C.dll

@mikedn @AndyAyersMS @BruceForstall PTAL

If the problem comes back would also try @mikedn's NoGCRegion suggestion #164 (comment)

/cc @dotnet/jit-contrib

@echesakov echesakov merged commit a8da9bb into dotnet:master Aug 31, 2018
@echesakov echesakov deleted the WaitForPendingFinalizersToAvoidJitOutputCorruption branch August 31, 2018 05:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants