< prev index next >

src/hotspot/share/runtime/stackValue.cpp

Print this page

        

@@ -131,16 +131,20 @@
          // of the page below heap. Use NULL value for both cases.
          val = (oop)NULL;
       }
 #endif
       // Deoptimization must make sure all oops have passed load barriers
+#if INCLUDE_ZGC
+      if (UseZGC) {
+        val = ZBarrier::load_barrier_on_oop_field_preloaded((oop*)value_addr, val);
+      }
+#endif
 #if INCLUDE_SHENANDOAHGC
       if (UseShenandoahGC) {
         val = ShenandoahBarrierSet::barrier_set()->load_reference_barrier(val);
       }
 #endif
-      assert(oopDesc::is_oop_or_null(val, false), "bad oop found");
       Handle h(Thread::current(), val); // Wrap a handle around the oop
       return new StackValue(h);
     }
     case Location::addr: {
       ShouldNotReachHere(); // both C1 and C2 now inline jsrs
< prev index next >