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

This commit is contained in:
Hans Boehm
2020-04-13 18:51:16 +00:00
committed by Gerrit Code Review

View File

@@ -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)