Bug 256180 mobile part - Increase the max size for the runtime stack of the Gecko main thread on Android. r=snorp.
authorHenri Sivonen <hsivonen@hsivonen.fi>
Wed, 04 Oct 2017 09:46:05 +0300
changeset 513388 0fab42583213af52766e845db6fd4f7f97fa9c57
parent 513387 95d8f77451e23148ed428d32a1262dc6086dec19
child 513389 feb776af8fd3fcdfeb2d4ccda3c504e5bd1c3ece
push id1953
push userffxbld-merge
push dateMon, 11 Mar 2019 12:10:20 +0000
treeherdermozilla-release@9c35dcbaa899 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssnorp
bugs256180
milestone66.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 256180 mobile part - Increase the max size for the runtime stack of the Gecko main thread on Android. r=snorp. MozReview-Commit-ID: F85WvVTOP1S
mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoThread.java
--- a/mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoThread.java
+++ b/mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoThread.java
@@ -153,17 +153,19 @@ public class GeckoThread extends Thread 
         public int prefsFd;
         public int prefMapFd;
         public int ipcFd;
         public int crashFd;
         public int crashAnnotationFd;
     }
 
     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() {
         final InitInfo info = INSTANCE.mInitInfo;
         return info != null && info.extras.getInt(EXTRA_IPC_FD, -1) != -1;
     }