Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 67808289 authored by Narayan Kamath's avatar Narayan Kamath Committed by Android (Google) Code Review
Browse files

Merge "Binder: Be forceful about a forceful exit." into oc-dev

parents d280bfea d64abfcf
Loading
Loading
Loading
Loading
+4 −10
Original line number Diff line number Diff line
@@ -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.
         * This will dump the pending exception as well as all thread traces
         * to the log.
         */
        env->Throw(excep);
        env->ExceptionDescribe();
        ALOGE("Forcefully exiting");
        exit(1);
        env->FatalError("java.lang.Error thrown during binder transaction.");
    }

bail: