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

Change-Id: I5d2991ced189f98aab1a28b847d80085ab01f235
This commit is contained in:
Hans Boehm
2020-04-13 19:36:25 +00:00
committed by Automerger Merge Worker

View File

@@ -1244,12 +1244,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)