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

Change-Id: Ib8b6c1d12000bdc75461774d9aff2feb30afbcd4
This commit is contained in:
Hans Boehm
2020-04-13 19:11:12 +00:00
committed by Automerger Merge Worker

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)