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

8267710: [lworld][lw3] Hook AlwaysAtomicAccesses to primitive classes atomicity rules #427

wants to merge 2 commits into from
Changes from 1 commit
File filter

Filter by extension

Filter by extension

Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -652,7 +652,7 @@ void FieldLayoutBuilder::regular_field_sorting() {
InlineKlass* vk = InlineKlass::cast(klass);
bool too_big_to_flatten = (InlineFieldMaxFlatSize >= 0 &&
(vk->size_helper() * HeapWordSize) > InlineFieldMaxFlatSize);
bool too_atomic_to_flatten = vk->is_declared_atomic();
bool too_atomic_to_flatten = vk->is_declared_atomic() || AlwaysAtomicAccesses;
bool too_volatile_to_flatten = fs.access_flags().is_volatile();
if (vk->is_naturally_atomic()) {
too_atomic_to_flatten = false;