Skip to content

Commit a88e109

Browse files
committed
Comments
1 parent 40a0730 commit a88e109

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hotspot/share/opto/parse3.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,15 +257,15 @@ void Parse::do_put_xxx(Node* obj, ciField* field, bool is_field) {
257257
// can insert a memory barrier later on to keep the writes from floating
258258
// out of the constructor.
259259
if (field->is_final() || field->is_stable()) {
260-
// Preserve allocation ptr to create precedent edge to it in membar
261-
// generated on exit from constructor.
262260
if (field->is_final()) {
263261
set_wrote_final(true);
264262
}
265263
if (field->is_stable()) {
266264
set_wrote_stable(true);
267265
}
268266
if (AllocateNode::Ideal_allocation(obj) != nullptr) {
267+
// Preserve allocation ptr to create precedent edge to it in membar
268+
// generated on exit from constructor.
269269
set_alloc_with_final_or_stable(obj);
270270
}
271271
}

0 commit comments

Comments
 (0)