Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Use volatile load to read brick table entries #17717

Merged
merged 1 commit into from
Apr 21, 2018

Conversation

jkotas
Copy link
Member

@jkotas jkotas commented Apr 21, 2018

Fixes #17716

return VolatileLoadWithoutBarrier(&brick_table [index]);
#else
return brick_table[index];
#endif
Copy link
Member

Choose a reason for hiding this comment

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

The special casing of 0 and positive values wasn't necessary?

Copy link
Member Author

@jkotas jkotas Apr 21, 2018

Choose a reason for hiding this comment

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

The original method was unused before. I have deleted the original method because of it had the buggy pattern, and added a new one with similar name that does what I need.

Copy link
Member

Choose a reason for hiding this comment

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

Got it.

Copy link
Member

@janvorli janvorli left a comment

Choose a reason for hiding this comment

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

LGTM

@jkotas jkotas merged commit 542be7d into dotnet:master Apr 21, 2018
@jkotas jkotas deleted the gc-fix-master branch April 21, 2018 20:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants