diff options
author | Wei Jin <wejin@google.com> | 2014-08-26 17:16:08 -0700 |
---|---|---|
committer | Calin Juravle <calin@google.com> | 2014-08-27 15:50:17 +0100 |
commit | 4d033e1c44c1b94ea5311713b8cc8bfb56bdcdd2 (patch) | |
tree | 19b3b04ad1b1727995ff9089147f654350aa91d8 | |
parent | 9b5112c36b5163925cb303c0cd016bf4115c5800 (diff) | |
download | base-4d033e1c44c1b94ea5311713b8cc8bfb56bdcdd2.tar.gz |
Fix the length of a profiler system property
This patch changes the profiler system property
"dalvik.vm.profile.max-stack-depth" to "dalvik.vm.profile.stack-depth"
so that the length of the option is less than PROP_NAME_MAX.
Bug: 17294224
Change-Id: I5723883d7fa38dd5eaa276182e5d680d152cedad
-rw-r--r-- | core/jni/AndroidRuntime.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/jni/AndroidRuntime.cpp b/core/jni/AndroidRuntime.cpp index 096d4cdc2518..0834a84c3062 100644 --- a/core/jni/AndroidRuntime.cpp +++ b/core/jni/AndroidRuntime.cpp @@ -872,7 +872,7 @@ int AndroidRuntime::startVm(JavaVM** pJavaVM, JNIEnv** pEnv) parseRuntimeOption("dalvik.vm.profiler.type", profileType, "-Xprofile-type:"); // Depth of bounded stack data - parseRuntimeOption("dalvik.vm.profile.max-stack-depth", + parseRuntimeOption("dalvik.vm.profile.stack-depth", profileMaxStackDepth, "-Xprofile-max-stack-depth:"); } |