changeset 49242:c21904b367f4

8198585: add asserts to verify that ServiceUtil::visible_oop is not needed Summary: asserts added Reviewed-by: stefank, sspitsyn, dcubed
author cjplummer
date Fri, 23 Feb 2018 13:42:40 -0800
parents ff158f06c423
children 6a6490af22a0
files src/hotspot/share/services/serviceUtil.hpp
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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()