< prev index next >

src/hotspot/share/runtime/vframe.cpp

Print this page

        

@@ -132,11 +132,11 @@
     oop obj = monitor->owner();
     if (obj == NULL) continue; // skip unowned monitor
     //
     // Skip the monitor that the thread is blocked to enter or waiting on
     //
-    if (!found_first_monitor && (obj == pending_obj || obj == waiting_obj)) {
+    if (!found_first_monitor && (oopDesc::equals(obj, pending_obj) || oopDesc::equals(obj, waiting_obj))) {
       continue;
     }
     found_first_monitor = true;
     result->append(monitor);
   }
< prev index next >