< prev index next >

src/hotspot/cpu/riscv/templateInterpreterGenerator_riscv.cpp

Print this page
@@ -1538,10 +1538,16 @@
      __ load_unsigned_short(x10, access_flags);
      __ verify_access_flags(x10, JVM_ACC_SYNCHRONIZED, "method needs synchronization");
  #endif
    }
  
+   // Issue a StoreStore barrier on entry to Object_init if the
+   // class has strict field fields.  Be lazy, always do it.
+   if (object_init) {
+     __ membar(MacroAssembler::StoreStore);
+   }
+ 
    // start execution
  #ifdef ASSERT
    __ verify_frame_setup();
  #endif
  
< prev index next >