summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author David Srbecky <dsrbecky@google.com> 2018-01-26 14:13:45 +0000
committer android-build-merger <android-build-merger@google.com> 2018-01-26 14:13:45 +0000
commit4ce53a04d3992281a230ac8fc61eb802bc32c5b2 (patch)
tree35a84ad0277687b859830705335bf954a0c63b80
parent2c13ebf8be4fdbd933a60c838b5730634711a7ef (diff)
parent8d4f8127e1cd6eb78d1a9c9c456093b984333a72 (diff)
Merge "Add dalvik.vm.minidebuginfo property for ART" am: 418a96457c am: 637814eebf
am: 8d4f8127e1 Change-Id: Ia4869cc2012ec7e7409c6ebb42a2d8291ed08bbf
-rw-r--r--core/jni/AndroidRuntime.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/jni/AndroidRuntime.cpp b/core/jni/AndroidRuntime.cpp
index aa9a82415f97..bf7a7794fcc6 100644
--- a/core/jni/AndroidRuntime.cpp
+++ b/core/jni/AndroidRuntime.cpp
@@ -973,6 +973,12 @@ int AndroidRuntime::startVm(JavaVM** pJavaVM, JNIEnv** pEnv, bool zygote)
addOption("--generate-debug-info");
}
+ // The mini-debug-info makes it possible to backtrace through JIT code.
+ if (property_get_bool("dalvik.vm.minidebuginfo", 0)) {
+ addOption("-Xcompiler-option");
+ addOption("--generate-mini-debug-info");
+ }
+
/*
* Retrieve the build fingerprint and provide it to the runtime. That way, ANR dumps will
* contain the fingerprint and can be parsed.