< prev index next >

src/hotspot/share/gc/serial/markSweep.inline.hpp

Print this page

        

@@ -85,11 +85,11 @@
            (UseBiasedLocking && obj->mark_raw().has_bias_pattern()),
            // not gc marked?
            "should be forwarded");
 
     if (new_obj != NULL) {
-      DEBUG_ONLY(Universe::heap()->check_oop_location((HeapWord*)new_obj);)
+      assert(Universe::heap()->is_oop_location(new_obj), "invalid oop location");
       RawAccess<IS_NOT_NULL>::oop_store(p, new_obj);
     }
   }
 }
 
< prev index next >