Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Sep 4, 2020

Backport of #41815 to release/5.0-rc2

/cc @BruceForstall @jakobbotsch

Customer Impact

This fixes a GC hole that could cause a crash or data corruption. This could happen in a small window for tail call functions via the new tailcall-via-helper mechanism if byref arguments were passed.

The original issue is #41555

Testing

Our full complement of CI GCStress runs was performed; the originally failing test was not observed to be failing any more. Additionally, @BruceForstall manually examined GC info for the tailcall helper stubs for the previously failing test, and observed the change looked correct.

Risk

low

Switch to using ByReference instead of using stind.i/ldind.i and relying
on the JIT to report the locations being moved between.

Fixes #41555
@Dotnet-GitSync-Bot
Copy link
Collaborator

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.

Copy link
Member

@jeffschwMSFT jeffschwMSFT left a comment

Choose a reason for hiding this comment

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

Approved. Please get a cr and a clean ci. I will take it for RC2 consideration

@jeffschwMSFT jeffschwMSFT added area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI Servicing-consider Issue for next servicing release review labels Sep 4, 2020
@jeffschwMSFT jeffschwMSFT added this to the 5.0.0 milestone Sep 4, 2020
@leecow leecow added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Sep 8, 2020
@BruceForstall BruceForstall merged commit d68f600 into release/5.0-rc2 Sep 8, 2020
@BruceForstall BruceForstall deleted the backport/pr-41815-to-release/5.0-rc2 branch September 8, 2020 17:52
@ghost ghost locked as resolved and limited conversation to collaborators Dec 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants