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

Jitstress fixes for tailcall tests #1771

Merged
merged 2 commits into from
Jan 15, 2020

Conversation

AndyAyersMS
Copy link
Member

@AndyAyersMS AndyAyersMS commented Jan 15, 2020

Make STRESS_GENERIC_VARN more compatible with methods that make explicit tail
calls. Don't add gc checks for explicit tail calls, and remove the code in
morph that blocks tail calls if gc checks are active.

Update the tailcall test to to disable STRESS_UNSAFE_BUFFER_CHECKS. This can
be reverted when #314 #341 is merged.

Fixes #1752.

Make STRESS_GENERIC_VARN more compatible with methods that make explicit tail
calls. Don't add gc checks for explicit tail calls, and remove the code in
morph that blocks tail calls if gc checks are active.

Update the tailcall test to to disable STRESS_UNSAFE_BUFFER_CHECKS. This can
be reverted when dotnet#314 is merged.

Fixes dotnet#1752.
@AndyAyersMS
Copy link
Member Author

cc @dotnet/jit-contrib

Also fixes dotnet/coreclr#27658.

@AndyAyersMS AndyAyersMS added area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI JitStress CLR JIT issues involving JIT internal stress modes labels Jan 15, 2020
// impReturnInstruction: import a return or an explicit tail call
//
// Arguments:
// block -- call returning a struct in a registers
Copy link
Member

Choose a reason for hiding this comment

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

"in a registers"? grammar seems weird.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yikes, copy paste artifact from the method above.

Looks like block is unused so I'll just remove it entirely and fix up the caller.

@AndyAyersMS AndyAyersMS merged commit e17f25c into dotnet:master Jan 15, 2020
@AndyAyersMS AndyAyersMS deleted the JitStressTailCallFix branch January 15, 2020 21:07
@ghost ghost locked as resolved and limited conversation to collaborators Dec 11, 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 JitStress CLR JIT issues involving JIT internal stress modes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JIT\Directed\tailcall fails at runtime with jitstress=2
3 participants