This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Report registers as dead in GCInfo before the RhpPInvoke helper.#14664
Merged
jkotas merged 3 commits intodotnet:masterfrom Oct 24, 2017
Merged
Report registers as dead in GCInfo before the RhpPInvoke helper.#14664jkotas merged 3 commits intodotnet:masterfrom
jkotas merged 3 commits intodotnet:masterfrom
Conversation
added 3 commits
October 23, 2017 16:48
It makes it accessible from codegen.
It terminates live of GCRefs before RhpPInvoke.
Author
|
PTAL @jkotas , @dotnet/jit-contrib |
MichalStrehovsky
added a commit
to MichalStrehovsky/corert
that referenced
this pull request
Oct 24, 2017
Picks up dotnet/coreclr#14664.
jkotas
pushed a commit
to dotnet/corert
that referenced
this pull request
Oct 24, 2017
Picks up dotnet/coreclr#14664.
A-And
pushed a commit
to A-And/corert
that referenced
this pull request
Oct 31, 2017
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CORINFO_HELP_JIT_PINVOKE_BEGINmakes transition to preemptive mode before a P/Invoke, so it requires GC pointer state to be cleared before the helper.I checked other occurrences of
IsUnmanaged()and looks like they already consider or do not need to consider this helper case.If
opts.ShouldUsePInvokeHelpers()is enabled, than the state before the P/Invoke must be clean, so we can rewrite it as:but it doesn't harm to return true for unmanaged calls always.
Fix dotnet/corert#4676 .
Checked that it fixes the original test.