8151871: [JVMCI] missing HAS_PENDING_EXCEPTION check

Reviewed-by: kvn
This commit is contained in:
Tom Rodriguez 2016-03-15 14:19:24 -07:00
parent 23a62fdfca
commit 3e246411ae

View file

@ -162,6 +162,9 @@ void JVMCICompiler::compile_method(const methodHandle& method, int entry_bci, JV
CLEAR_PENDING_EXCEPTION;
java_lang_Throwable::java_printStackTrace(exception, THREAD);
if (HAS_PENDING_EXCEPTION) {
CLEAR_PENDING_EXCEPTION;
}
env->set_failure("exception throw", false);
} else {