8258839: Remove JVM option ExitVMOnVerifyError

Reviewed-by: iignatyev, dcubed, coleenp
This commit is contained in:
Harold Seigel 2020-12-23 20:49:36 +00:00
parent cd94606c0c
commit fda0943419
4 changed files with 9 additions and 25 deletions

View file

@ -490,14 +490,10 @@ JRT_ENTRY(address, InterpreterRuntime::exception_handler_for_exception(JavaThrea
should_repeat = false;
// assertions
#ifdef ASSERT
assert(h_exception.not_null(), "NULL exceptions should be handled by athrow");
// Check that exception is a subclass of Throwable, otherwise we have a VerifyError
if (!(h_exception->is_a(SystemDictionary::Throwable_klass()))) {
if (ExitVMOnVerifyError) vm_exit(-1);
ShouldNotReachHere();
}
#endif
// Check that exception is a subclass of Throwable.
assert(h_exception->is_a(SystemDictionary::Throwable_klass()),
"Exception not subclass of Throwable");
// tracing
if (log_is_enabled(Info, exceptions)) {