From 4d033e1c44c1b94ea5311713b8cc8bfb56bdcdd2 Mon Sep 17 00:00:00 2001 From: Wei Jin Date: Tue, 26 Aug 2014 17:16:08 -0700 Subject: [PATCH] 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 --- core/jni/AndroidRuntime.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/jni/AndroidRuntime.cpp b/core/jni/AndroidRuntime.cpp index 096d4cdc2518d..0834a84c30626 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:"); }