8198585: add asserts to verify that ServiceUtil::visible_oop is not needed
Summary: asserts added
Reviewed-by: stefank, sspitsyn, dcubed
--- 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()