8198585: add asserts to verify that ServiceUtil::visible_oop is not needed
authorcjplummer
Fri, 23 Feb 2018 13:42:40 -0800
changeset 49063 c21904b367f4
parent 49062 ff158f06c423
child 49064 6a6490af22a0
8198585: add asserts to verify that ServiceUtil::visible_oop is not needed Summary: asserts added Reviewed-by: stefank, sspitsyn, dcubed
src/hotspot/share/services/serviceUtil.hpp
--- a/src/hotspot/share/services/serviceUtil.hpp	Thu Feb 22 13:16:06 2018 -0800
+++ b/src/hotspot/share/services/serviceUtil.hpp	Fri Feb 23 13:42:40 2018 -0800
@@ -63,6 +63,7 @@
           return true;
         }
       }
+      fatal("visible_oop: should never reach here #1");
       return false;
     }
     // object arrays are visible if they aren't system object arrays
@@ -74,6 +75,7 @@
       return true;
     }
     // everything else (Method*s, ...) aren't visible
+    fatal("visible_oop: should never reach here #2");
     return false;
   };   // end of visible_oop()