changeset 55808:966a51af2986

8224966: ZGC: Don't skip oop verification in OopMapSet::all_do() Reviewed-by: stefank, eosterlund
author pliden
date Mon, 10 Jun 2019 12:52:56 +0200
parents 8081b181bba8
children d60b24a09900
files src/hotspot/share/compiler/oopMap.cpp
diffstat 1 files changed, 2 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/compiler/oopMap.cpp	Mon Jun 10 11:17:57 2019 +0100
+++ b/src/hotspot/share/compiler/oopMap.cpp	Mon Jun 10 12:52:56 2019 +0200
@@ -379,12 +379,8 @@
           continue;
         }
 #ifdef ASSERT
-        // We can not verify the oop here if we are using ZGC, the oop
-        // will be bad in case we had a safepoint between a load and a
-        // load barrier.
-        if (!UseZGC &&
-            ((((uintptr_t)loc & (sizeof(*loc)-1)) != 0) ||
-             !Universe::heap()->is_in_or_null(*loc))) {
+        if ((((uintptr_t)loc & (sizeof(*loc)-1)) != 0) ||
+            !Universe::heap()->is_in_or_null(*loc)) {
           tty->print_cr("# Found non oop pointer.  Dumping state at failure");
           // try to dump out some helpful debugging information
           trace_codeblob_maps(fr, reg_map);