From 55ba936473fff6147122115693a783326ff494e3 Mon Sep 17 00:00:00 2001 From: Pavel Afremov Date: Fri, 15 Jun 2007 21:00:08 +0400 Subject: [PATCH] Fix bug of call functions which rase exception from throw area. Patch adds BEGIN_RAISE_AREA and END_RAISE_AREA macroses to call FindClass from rase area. --- vm/vmcore/src/init/vm_shutdown.cpp | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/vm/vmcore/src/init/vm_shutdown.cpp b/vm/vmcore/src/init/vm_shutdown.cpp index 5216fdc..593fa6d 100644 --- a/vm/vmcore/src/init/vm_shutdown.cpp +++ b/vm/vmcore/src/init/vm_shutdown.cpp @@ -64,6 +64,7 @@ static jint exec_shutdown_sequence(JNIEnv * jni_env) { jmethodID shutdown_method; assert(hythread_is_suspend_enabled()); + BEGIN_RAISE_AREA; system_class = jni_env->FindClass("java/lang/System"); if (jni_env->ExceptionCheck() == JNI_TRUE || system_class == NULL) { @@ -81,6 +82,8 @@ static jint exec_shutdown_sequence(JNIEnv * jni_env) { if (jni_env->ExceptionCheck() == JNI_TRUE) { PROCESS_EXCEPTION(40, "{0}java.lang.System.execShutdownSequence() method completed with an exception."); } + + END_RAISE_AREA; return JNI_OK; } -- 1.5.0.3