Bug 256180 mobile part - Increase the max size for the runtime stack of the Gecko main thread on Android.
MozReview-Commit-ID: F85WvVTOP1S
--- a/mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoThread.java
+++ b/mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoThread.java
@@ -124,17 +124,19 @@ public class GeckoThread extends Thread
private String mExtraArgs;
private int mFlags;
// Child process parameters
private int mCrashFileDescriptor = -1;
private int mIPCFileDescriptor = -1;
GeckoThread() {
- setName("Gecko");
+ // Request more (virtual) stack space to avoid overflows in the CSS frame
+ // constructor. 8 MB matches desktop.
+ super(null, null, "Gecko", 8 * 1024 * 1024);
}
@WrapForJNI
private static boolean isChildProcess() {
return INSTANCE.mIPCFileDescriptor != -1;
}
private synchronized boolean init(final GeckoProfile profile, final String[] args,