changeset 52107:0c1e44da019c

8212053: A few more missing object equals barriers Reviewed-by: shade, zgu
author rkennke
date Fri, 12 Oct 2018 16:25:24 +0200
parents 76d526565453
children 9c84227836d4
files src/hotspot/share/oops/compressedOops.inline.hpp src/hotspot/share/runtime/vframe.cpp
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/oops/compressedOops.inline.hpp	Fri Oct 12 11:12:51 2018 +0100
+++ b/src/hotspot/share/oops/compressedOops.inline.hpp	Fri Oct 12 16:25:24 2018 +0200
@@ -66,7 +66,7 @@
     assert(OopEncodingHeapMax > pd, "change encoding max if new encoding");
     uint64_t result = pd >> shift;
     assert((result & CONST64(0xffffffff00000000)) == 0, "narrow oop overflow");
-    assert(decode(result) == v, "reversibility");
+    assert(oopDesc::equals_raw(decode(result), v), "reversibility");
     return (narrowOop)result;
   }
 
--- a/src/hotspot/share/runtime/vframe.cpp	Fri Oct 12 11:12:51 2018 +0100
+++ b/src/hotspot/share/runtime/vframe.cpp	Fri Oct 12 16:25:24 2018 +0200
@@ -134,7 +134,7 @@
     //
     // 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;