From c6d75dec508b0c1e22d200759c8b583e2f3b2fd8 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Wed, 12 Sep 2018 17:28:29 +0000 Subject: experimental/qt5-qtwebkit: Closer to working --- .../qt5-qtwebkit/musl-thread-stacksize.patch | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 experimental/qt5-qtwebkit/musl-thread-stacksize.patch (limited to 'experimental/qt5-qtwebkit/musl-thread-stacksize.patch') diff --git a/experimental/qt5-qtwebkit/musl-thread-stacksize.patch b/experimental/qt5-qtwebkit/musl-thread-stacksize.patch new file mode 100644 index 000000000..b1e42b7d0 --- /dev/null +++ b/experimental/qt5-qtwebkit/musl-thread-stacksize.patch @@ -0,0 +1,47 @@ +--- qtwebkit-5.212.0-alpha2/Source/WTF/wtf/ThreadingPthreads.cpp.old 2017-06-04 15:16:06.000000000 -0500 ++++ qtwebkit-5.212.0-alpha2/Source/WTF/wtf/ThreadingPthreads.cpp 2018-09-05 02:29:45.980000000 +0000 +@@ -107,10 +107,11 @@ + void initializeThreading() + { + static bool isInitialized; ++ pthread_attr_t attr; + + if (isInitialized) + return; + + isInitialized = true; + + WTF::double_conversion::initialize(); +@@ -122,6 +122,11 @@ + ThreadIdentifierData::initializeOnce(); + wtfThreadData(); + initializeDates(); ++ ++ pthread_attr_init(&attr); ++ pthread_attr_setstacksize(&attr, 2097152); ++ pthread_setattr_default_np(&attr); ++ pthread_attr_destroy(&attr); + } + + static ThreadMap& threadMap() +@@ -171,6 +171,7 @@ + pthread_t threadHandle; + pthread_attr_t attr; + pthread_attr_init(&attr); ++ pthread_attr_setstacksize(&attr, 2097152); + #if HAVE(QOS_CLASSES) + pthread_attr_set_qos_class_np(&attr, QOS_CLASS_USER_INITIATED, 0); + #endif +--- qtwebkit-5.212.0-alpha2/Source/JavaScriptCore/runtime/Options.h.old 2017-06-04 15:16:05.000000000 -0500 ++++ qtwebkit-5.212.0-alpha2/Source/JavaScriptCore/runtime/Options.h 2018-09-04 22:29:51.050000000 -0500 +@@ -112,9 +112,9 @@ + \ + v(bool, reportMustSucceedExecutableAllocations, false, nullptr) \ + \ +- v(unsigned, maxPerThreadStackUsage, 4 * MB, nullptr) \ ++ v(unsigned, maxPerThreadStackUsage, 1 * MB, nullptr) \ + v(unsigned, reservedZoneSize, 128 * KB, nullptr) \ + v(unsigned, errorModeReservedZoneSize, 64 * KB, nullptr) \ + \ + v(bool, crashIfCantAllocateJITMemory, false, nullptr) \ + v(unsigned, jitMemoryReservationSize, 0, "Set this number to change the executable allocation size in ExecutableAllocatorFixedVMPool. (In bytes.)") \ -- cgit v1.2.3-60-g2f50