8198585: add asserts to verify that ServiceUtil::visible_oop is not needed

Asserts added

Reviewed-by: stefank, sspitsyn, dcubed
This commit is contained in:
Chris Plummer 2018-02-23 13:42:40 -08:00
parent 75d088ecc4
commit 073257906c

@ -63,6 +63,7 @@ class ServiceUtil : public AllStatic {
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 @@ class ServiceUtil : public AllStatic {
return true;
}
// everything else (Method*s, ...) aren't visible
fatal("visible_oop: should never reach here #2");
return false;
}; // end of visible_oop()