< prev index next >

src/hotspot/cpu/s390/templateInterpreterGenerator_s390.cpp

Print this page
*** 1795,10 ***
--- 1795,16 ---
        __ bind(L);
      }
  #endif // ASSERT
    }
  
+   // If object_init == true, we should insert a StoreStore barrier here to
+   // prevent strict fields initial default values from being observable.
+   // However, s390 is a TSO platform, so if `this` escapes, strict fields
+   // initialized values are guaranteed to be the ones observed, so the
+   // barrier can be elided.
+ 
    // start execution
  
  #ifdef ASSERT
    __ verify_esp(Z_esp, Z_R1_scratch);
  #endif
< prev index next >