diff options
author | Elliott Hughes <enh@google.com> | 2012-04-12 16:02:56 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2012-04-12 16:02:56 -0700 |
commit | 3f177d7c9a5c8ac727b0c6c3a5131e1e00ea52e8 (patch) | |
tree | 33b17b56c27ff005a168236c320999dd76dd39a7 | |
parent | f3d9f5d097dffec33f416d0907d4a6e0dae43f69 (diff) | |
download | frameworks_base-3f177d7c9a5c8ac727b0c6c3a5131e1e00ea52e8.zip frameworks_base-3f177d7c9a5c8ac727b0c6c3a5131e1e00ea52e8.tar.gz frameworks_base-3f177d7c9a5c8ac727b0c6c3a5131e1e00ea52e8.tar.bz2 |
Bump the interpreter stack size for the main thread.
Bug: 6315322
Change-Id: I8d84e7c2e0eeb5314530b8a8b141f44014b8c646
-rw-r--r-- | core/jni/AndroidRuntime.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/jni/AndroidRuntime.cpp b/core/jni/AndroidRuntime.cpp index 879b9d2..b877071 100644 --- a/core/jni/AndroidRuntime.cpp +++ b/core/jni/AndroidRuntime.cpp @@ -549,6 +549,10 @@ int AndroidRuntime::startVm(JavaVM** pJavaVM, JNIEnv** pEnv) opt.optionString = heapsizeOptsBuf; mOptions.add(opt); + // Increase the main thread's interpreter stack size for bug 6315322. + opt.optionString = "-XX:mainThreadStackSize=24K"; + mOptions.add(opt); + strcpy(heapgrowthlimitOptsBuf, "-XX:HeapGrowthLimit="); property_get("dalvik.vm.heapgrowthlimit", heapgrowthlimitOptsBuf+20, ""); if (heapgrowthlimitOptsBuf[20] != '\0') { |