< prev index next >

src/share/vm/services/serviceUtil.hpp

Print this page

        

@@ -37,11 +37,11 @@
 
   // Return true if oop represents an object that is "visible"
   // to the java world.
   static inline bool visible_oop(oop o) {
     // the sentinel for deleted handles isn't visible
-    if (o == JNIHandles::deleted_handle()) {
+    if (oopDesc::equals(o, JNIHandles::deleted_handle())) {
       return false;
     }
 
     // instance
     if (o->is_instance()) {
< prev index next >