mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8151871: [JVMCI] missing HAS_PENDING_EXCEPTION check
Reviewed-by: kvn
This commit is contained in:
parent
23a62fdfca
commit
3e246411ae
1 changed files with 3 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue