# HG changeset patch # User cjplummer # Date 1519422160 28800 # Node ID c21904b367f485131b8c61b6d2c8650c797fab10 # Parent ff158f06c423debcb1bff38c86839a77176cd5cf 8198585: add asserts to verify that ServiceUtil::visible_oop is not needed Summary: asserts added Reviewed-by: stefank, sspitsyn, dcubed diff -r ff158f06c423 -r c21904b367f4 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()