diff options
author | Carl Shapiro <cshapiro@google.com> | 2010-12-08 12:14:46 -0800 |
---|---|---|
committer | Carl Shapiro <cshapiro@google.com> | 2010-12-08 12:14:46 -0800 |
commit | 9e4c884e7a7acd6b75399b180dc339295cda5a43 (patch) | |
tree | 9f00c6dfe52b0363515e6f765908381dfa48fc29 /core/jni | |
parent | 02b93914b47f3e5a47fbeddbec7ff151c7ee4f35 (diff) | |
download | frameworks_base-9e4c884e7a7acd6b75399b180dc339295cda5a43.zip frameworks_base-9e4c884e7a7acd6b75399b180dc339295cda5a43.tar.gz frameworks_base-9e4c884e7a7acd6b75399b180dc339295cda5a43.tar.bz2 |
Add a comment regarding the sizing of the Dalvik heap.
Change-Id: I07a3267531580f034e78b5316162bfb553f1f819
Diffstat (limited to 'core/jni')
-rw-r--r-- | core/jni/AndroidRuntime.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/core/jni/AndroidRuntime.cpp b/core/jni/AndroidRuntime.cpp index 98bdb52..07505a5 100644 --- a/core/jni/AndroidRuntime.cpp +++ b/core/jni/AndroidRuntime.cpp @@ -626,14 +626,16 @@ int AndroidRuntime::startVm(JavaVM** pJavaVM, JNIEnv** pEnv) mOptions.add(opt); //options[curOpt++].optionString = "-verbose:class"; + /* + * The default starting and maximum size of the heap. Larger + * values should be specified in a product property override. + */ strcpy(heapstartsizeOptsBuf, "-Xms"); - property_get("dalvik.vm.heapstartsize", heapstartsizeOptsBuf+4, "2m"); + property_get("dalvik.vm.heapstartsize", heapstartsizeOptsBuf+4, "4m"); opt.optionString = heapstartsizeOptsBuf; mOptions.add(opt); - strcpy(heapsizeOptsBuf, "-Xmx"); property_get("dalvik.vm.heapsize", heapsizeOptsBuf+4, "16m"); - //LOGI("Heap size: %s", heapsizeOptsBuf); opt.optionString = heapsizeOptsBuf; mOptions.add(opt); |