< prev index next >

src/hotspot/share/runtime/stackValue.cpp

Print this page

        

@@ -119,11 +119,11 @@
          // The narrow_oop_base could be NULL or be the address
          // of the page below heap. Use NULL value for both cases.
          val = (oop)NULL;
       }
       // Deoptimization must make sure all oop have passed load barrier
-      if (UseLoadBarrier) {
+      if (UseZGC) {
         val = ZBarrier::load_barrier_on_oop_field_preloaded((oop*)value_addr, val);
       }
 #endif
       Handle h(Thread::current(), val); // Wrap a handle around the oop
       return new StackValue(h);
< prev index next >