am 325a5721: Merge "Properly describe exception" into mnc-dev
* commit '325a57218e9f13cf696215006c230cac34b3c8a1': Properly describe exception
This commit is contained in:
@@ -200,10 +200,8 @@ static void report_exception(JNIEnv* env, jthrowable excep, const char* msg)
|
|||||||
* that can be made while an exception is pending, so we want to
|
* that can be made while an exception is pending, so we want to
|
||||||
* get the VM ptr, throw the exception, and then detach the thread.
|
* get the VM ptr, throw the exception, and then detach the thread.
|
||||||
*/
|
*/
|
||||||
JavaVM* vm = jnienv_to_javavm(env);
|
|
||||||
env->Throw(excep);
|
env->Throw(excep);
|
||||||
vm->DetachCurrentThread();
|
env->ExceptionDescribe();
|
||||||
sleep(60);
|
|
||||||
ALOGE("Forcefully exiting");
|
ALOGE("Forcefully exiting");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user