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

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
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;
@@ -753,7 +753,7 @@ void FieldLayoutBuilder::inline_class_field_sorting(TRAPS) {
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;