changeset 10486:a67e578d4015

8151871: [JVMCI] missing HAS_PENDING_EXCEPTION check Reviewed-by: kvn
author never
date Tue, 15 Mar 2016 14:19:24 -0700
parents 6daf6d082fd0
children b64b01f6cf4f 3256d4204291
files src/share/vm/jvmci/jvmciCompiler.cpp
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/jvmci/jvmciCompiler.cpp	Tue Mar 15 17:42:28 2016 +0100
+++ b/src/share/vm/jvmci/jvmciCompiler.cpp	Tue Mar 15 14:19:24 2016 -0700
@@ -162,6 +162,9 @@
     CLEAR_PENDING_EXCEPTION;
 
     java_lang_Throwable::java_printStackTrace(exception, THREAD);
+    if (HAS_PENDING_EXCEPTION) {
+      CLEAR_PENDING_EXCEPTION;
+    }
 
     env->set_failure("exception throw", false);
   } else {