< prev index next >

src/share/vm/gc/serial/defNewGeneration.inline.hpp

Print this page

        

@@ -39,11 +39,11 @@
   {
     // We never expect to see a null reference being processed
     // as a weak reference.
     assert (!oopDesc::is_null(*p), "expected non-null ref");
     oop obj = oopDesc::load_decode_heap_oop_not_null(p);
-    assert (obj->is_oop(), "expected an oop while scanning weak refs");
+    assert (oopDesc::is_oop(obj), "expected an oop while scanning weak refs");
   }
 #endif // ASSERT
 
   _cl->do_oop_nv(p);
 

@@ -72,11 +72,11 @@
   {
     // We never expect to see a null reference being processed
     // as a weak reference.
     assert (!oopDesc::is_null(*p), "expected non-null ref");
     oop obj = oopDesc::load_decode_heap_oop_not_null(p);
-    assert (obj->is_oop(), "expected an oop while scanning weak refs");
+    assert (oopDesc::is_oop(obj), "expected an oop while scanning weak refs");
   }
 #endif // ASSERT
 
   _cl->do_oop_nv(p);
 
< prev index next >