summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2017-06-13 15:27:09 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2017-06-13 15:27:11 +0000
commit6f11744adc45d8c2b4da8645332e78c784658bb7 (patch)
treeeb74dbc45da08c076f730e240ff8b1fbc218a28b
parent30a1cf96bb43e59029542a7f80be5522129b45b0 (diff)
parentcfd0f9beeed9c1934b47a2914533cdd06c9f79e3 (diff)
Merge changes I73ae8de1,I58260902
* changes: Binder: Log details of pending exception. Binder: Be forceful about a forceful exit.
-rw-r--r--core/jni/android_util_Binder.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/core/jni/android_util_Binder.cpp b/core/jni/android_util_Binder.cpp
index abcd1e7049ef..de67c50e7195 100644
--- a/core/jni/android_util_Binder.cpp
+++ b/core/jni/android_util_Binder.cpp
@@ -192,18 +192,12 @@ static void report_exception(JNIEnv* env, jthrowable excep, const char* msg)
if (env->IsInstanceOf(excep, gErrorOffsets.mClass)) {
/*
- * It's an Error: Reraise the exception, detach this thread, and
- * wait for the fireworks. Die even more blatantly after a minute
- * if the gentler attempt doesn't do the trick.
- *
- * The GetJavaVM function isn't on the "approved" list of JNI calls
- * 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.
+ * It's an Error: Reraise the exception and ask the runtime to abort.
*/
env->Throw(excep);
+ ALOGE("java.lang.Error thrown during binder transaction (stack trace follows) : ");
env->ExceptionDescribe();
- ALOGE("Forcefully exiting");
- exit(1);
+ env->FatalError("java.lang.Error thrown during binder transaction.");
}
bail: