Merge "Don't call exit() with threads running" into rvc-dev am: f4d8d90a59

Change-Id: I4dd8f54b7927b92bca41190ce6633871ea5fb2e1
This commit is contained in:
Hans Boehm
2020-04-21 10:58:35 +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)