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

Fix for issue 40444 - Thread.MemoryBarrier() should prevent hoisting of memory reads #40821

Merged
merged 1 commit into from
Aug 14, 2020

Conversation

briansull
Copy link
Contributor

Add the GT_MEMORYBARRIER operator to the set of instructions that need to record a ByrefExposed memory havoc impact in loops

This prevents the hoisting of memory loads out of such a loop

…d to record a ByrefExposed memory havoc impact in loops

This prevents the hoisting of memory loads out of such a loop
@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Aug 14, 2020
@briansull
Copy link
Contributor Author

Fixes #40444

@briansull
Copy link
Contributor Author

@AndyAyersMS PTAL
@dotnet/jit-contrib

Copy link
Member

@AndyAyersMS AndyAyersMS left a comment

Choose a reason for hiding this comment

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

Thanks.

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants