Skip to content

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

Merged
briansull merged 1 commit into
dotnet:masterfrom
briansull:issue_40444
Aug 14, 2020
Merged

briansull merged 1 commit into
dotnet:masterfrom
briansull:issue_40444

Conversation

@briansull

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

Fixes #40444

@briansull

Copy link
Copy Markdown
Contributor Author

@AndyAyersMS PTAL
@dotnet/jit-contrib

@AndyAyersMS AndyAyersMS left a comment

Copy link
Copy Markdown
Member

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