summaryrefslogtreecommitdiffstats
path: root/include/android_runtime
diff options
context:
space:
mode:
authorAndy McFadden <fadden@android.com>2010-07-14 16:02:20 -0700
committerAndy McFadden <fadden@android.com>2010-07-30 10:57:47 -0700
commite4d81f25bd4dc1a5c909b56ab56a56406290da30 (patch)
tree8bb0db495a1bb2037299022e7fce2a2eae59ee09 /include/android_runtime
parent01301d31a4c2e8745a3e12c9a441d2448e63d775 (diff)
downloadframeworks_base-e4d81f25bd4dc1a5c909b56ab56a56406290da30.zip
frameworks_base-e4d81f25bd4dc1a5c909b56ab56a56406290da30.tar.gz
frameworks_base-e4d81f25bd4dc1a5c909b56ab56a56406290da30.tar.bz2
Add support for dalvik.vm.extra-opts property.
The goal here is to avoid the dalvik.vm.* property explosion by having a single property that takes an arbitrary collection of Dalvik command-line options. This is intended for testing of various configurations by the Dalvik team, not industrial use. Options should be separated by spaces, e.g. adb shell setprop dalvik.vm.extra-opts "-showversion -Xmx4m" will print the version banner and set the heap max to 4MB, which won't get you very far. The extra-opts options will appear last, which allows them to override values set earlier (like the heap max). Bug 2838629. (cherry-pick from dalvik-dev branch) Change-Id: Ibcbb1b62367cf2152798583e8722ef7e461ad19a
Diffstat (limited to 'include/android_runtime')
-rw-r--r--include/android_runtime/AndroidRuntime.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/android_runtime/AndroidRuntime.h b/include/android_runtime/AndroidRuntime.h
index 2ded5be..22c9b72 100644
--- a/include/android_runtime/AndroidRuntime.h
+++ b/include/android_runtime/AndroidRuntime.h
@@ -100,6 +100,7 @@ public:
private:
static int startReg(JNIEnv* env);
+ void parseExtraOpts(char* extraOptsBuf);
int startVm(JavaVM** pJavaVM, JNIEnv** pEnv);
Vector<JavaVMOption> mOptions;