Merge "Don't call exit() with threads running" into rvc-dev am: f4d8d90a59
Change-Id: I4dd8f54b7927b92bca41190ce6633871ea5fb2e1
This commit is contained in:
@@ -1244,12 +1244,11 @@ void AndroidRuntime::exit(int code)
|
|||||||
{
|
{
|
||||||
if (mExitWithoutCleanup) {
|
if (mExitWithoutCleanup) {
|
||||||
ALOGI("VM exiting with result code %d, cleanup skipped.", code);
|
ALOGI("VM exiting with result code %d, cleanup skipped.", code);
|
||||||
::_exit(code);
|
|
||||||
} else {
|
} else {
|
||||||
ALOGI("VM exiting with result code %d.", code);
|
ALOGI("VM exiting with result code %d.", code);
|
||||||
onExit(code);
|
onExit(code);
|
||||||
::exit(code);
|
|
||||||
}
|
}
|
||||||
|
::_exit(code);
|
||||||
}
|
}
|
||||||
|
|
||||||
void AndroidRuntime::onVmCreated(JNIEnv* env)
|
void AndroidRuntime::onVmCreated(JNIEnv* env)
|
||||||
|
|||||||
Reference in New Issue
Block a user