diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-09-12 17:28:29 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-09-12 17:28:29 +0000 |
commit | c6d75dec508b0c1e22d200759c8b583e2f3b2fd8 (patch) | |
tree | 08ee1bd3135233f4115244ddbedacae67251fa71 /experimental/qt5-qtwebkit/musl-thread-stacksize.patch | |
parent | d2a5aafc7f3d743e85362e020ea4fabe5fe31c64 (diff) | |
download | packages-c6d75dec508b0c1e22d200759c8b583e2f3b2fd8.tar.gz packages-c6d75dec508b0c1e22d200759c8b583e2f3b2fd8.tar.bz2 packages-c6d75dec508b0c1e22d200759c8b583e2f3b2fd8.tar.xz packages-c6d75dec508b0c1e22d200759c8b583e2f3b2fd8.zip |
experimental/qt5-qtwebkit: Closer to working
Diffstat (limited to 'experimental/qt5-qtwebkit/musl-thread-stacksize.patch')
-rw-r--r-- | experimental/qt5-qtwebkit/musl-thread-stacksize.patch | 47 |
1 files changed, 47 insertions, 0 deletions
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.)") \ |