< prev index next >

src/hotspot/cpu/x86/frame_x86.cpp

Print this page

        

@@ -23,11 +23,10 @@
  */
 
 #include "precompiled.hpp"
 #include "interpreter/interpreter.hpp"
 #include "memory/resourceArea.hpp"
-#include "memory/universe.hpp"
 #include "oops/markOop.hpp"
 #include "oops/method.hpp"
 #include "oops/oop.inline.hpp"
 #include "prims/methodHandles.hpp"
 #include "runtime/frame.inline.hpp"

@@ -545,11 +544,11 @@
     return false;
   }
 
   // validate ConstantPoolCache*
   ConstantPoolCache* cp = *interpreter_frame_cache_addr();
-  if (MetaspaceObj::is_valid(cp) == false) return false;
+  if (cp == NULL || !cp->is_metaspace_object()) return false;
 
   // validate locals
 
   address locals =  (address) *interpreter_frame_locals_addr();
 
< prev index next >