hotspot/src/share/vm/code/nmethod.cpp
changeset 46968 9119841280f4
parent 46701 f559541c0daa
child 47099 49f5fa3fc2ae
--- a/hotspot/src/share/vm/code/nmethod.cpp	Wed Aug 23 10:25:25 2017 +0200
+++ b/hotspot/src/share/vm/code/nmethod.cpp	Wed Aug 23 14:52:55 2017 -0400
@@ -2090,7 +2090,7 @@
   VerifyOopsClosure(nmethod* nm) : _nm(nm), _ok(true) { }
   bool ok() { return _ok; }
   virtual void do_oop(oop* p) {
-    if ((*p) == NULL || (*p)->is_oop())  return;
+    if (oopDesc::is_oop_or_null(*p)) return;
     if (_ok) {
       _nm->print_nmethod(true);
       _ok = false;
@@ -2112,7 +2112,7 @@
   // Make sure all the entry points are correctly aligned for patching.
   NativeJump::check_verified_entry_alignment(entry_point(), verified_entry_point());
 
-  // assert(method()->is_oop(), "must be valid");
+  // assert(oopDesc::is_oop(method()), "must be valid");
 
   ResourceMark rm;