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

Commit b7383f2c authored by Hans Boehm's avatar Hans Boehm Committed by Gerrit Code Review
Browse files

Merge "Don't call exit() with threads running"

parents 2f46cd18 0fcf4a60
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1285,12 +1285,11 @@ void AndroidRuntime::exit(int code)
{
    if (mExitWithoutCleanup) {
        ALOGI("VM exiting with result code %d, cleanup skipped.", code);
        ::_exit(code);
    } else {
        ALOGI("VM exiting with result code %d.", code);
        onExit(code);
        ::exit(code);
    }
    ::_exit(code);
}

void AndroidRuntime::onVmCreated(JNIEnv* env)