summaryrefslogtreecommitdiffstats
path: root/runtime/native/java_lang_Runtime.cc
diff options
context:
space:
mode:
authorDmitry Petrochenko <dmitry.petrochenko@intel.com>2014-07-03 17:07:45 +0700
committerNarayan Kamath <narayan@google.com>2014-08-04 17:42:00 +0100
commit108437eb35895e7fd461b131c6ceb383a7ca6ca2 (patch)
tree799dd4a1415be4acf1043c27b5785ee0893490b5 /runtime/native/java_lang_Runtime.cc
parent7906b25f79f24af3a8b8eee0454b4db1278b9b77 (diff)
downloadart-108437eb35895e7fd461b131c6ceb383a7ca6ca2.zip
art-108437eb35895e7fd461b131c6ceb383a7ca6ca2.tar.gz
art-108437eb35895e7fd461b131c6ceb383a7ca6ca2.tar.bz2
Inform about System.exit() call in logcat
This diagnostic message helps to filter out crashes during System.exit() when thread's behaviour is undefined. Change-Id: I772932a35b503b1efca695e7da7bf2e562c03a7c Signed-off-by: Dmitry Petrochenko <dmitry.petrochenko@intel.com>
Diffstat (limited to 'runtime/native/java_lang_Runtime.cc')
-rw-r--r--runtime/native/java_lang_Runtime.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/native/java_lang_Runtime.cc b/runtime/native/java_lang_Runtime.cc
index 496a1b2..fb708a2 100644
--- a/runtime/native/java_lang_Runtime.cc
+++ b/runtime/native/java_lang_Runtime.cc
@@ -38,6 +38,7 @@ static void Runtime_gc(JNIEnv*, jclass) {
}
static void Runtime_nativeExit(JNIEnv*, jclass, jint status) {
+ LOG(INFO) << "System.exit called, status: " << status;
Runtime::Current()->CallExitHook(status);
exit(status);
}