< prev index next >

src/share/vm/runtime/vframe.cpp

Print this page
rev 10727 : [backport] A few more missing object equals barriers

@@ -133,11 +133,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 >