Properly describe exception

Previously we used DetachCurrentThread which raised a SIGABRT from
within ART. The new approach is to use ExceptionDescribe and exit.

Bug: 20640601
Change-Id: Ia6c2345b656b2ada29d262399798a6ed717a7f85
This commit is contained in:
Mathieu Chartier
2015-04-28 16:30:30 -07:00
parent 375e21f811
commit d12065f581

View File

@@ -202,8 +202,7 @@ static void report_exception(JNIEnv* env, jthrowable excep, const char* msg)
*/
JavaVM* vm = jnienv_to_javavm(env);
env->Throw(excep);
vm->DetachCurrentThread();
sleep(60);
env->ExceptionDescribe();
ALOGE("Forcefully exiting");
exit(1);
}