diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-02-18 17:37:09 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-02-18 17:37:09 +0000 |
commit | de3a1692418779d6a0f4e00cf90f3f72ca9113f0 (patch) | |
tree | 85c869963d5ea1811b167fd00ef918884c5f981f /system/nspr/stacksize.patch | |
parent | bb886cdf194314220ef69427ee63e46184ad4b39 (diff) | |
download | packages-de3a1692418779d6a0f4e00cf90f3f72ca9113f0.tar.gz packages-de3a1692418779d6a0f4e00cf90f3f72ca9113f0.tar.bz2 packages-de3a1692418779d6a0f4e00cf90f3f72ca9113f0.tar.xz packages-de3a1692418779d6a0f4e00cf90f3f72ca9113f0.zip |
system/nspr: merge patch from Void re: ppc64 threads
Diffstat (limited to 'system/nspr/stacksize.patch')
-rw-r--r-- | system/nspr/stacksize.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/system/nspr/stacksize.patch b/system/nspr/stacksize.patch new file mode 100644 index 000000000..c2fcecd68 --- /dev/null +++ b/system/nspr/stacksize.patch @@ -0,0 +1,22 @@ +set a minimum stack size on ppc64 to prevent crashes + +Firefox, a user of nspr, attempts to set a stack size of 32k in its +JS watchdog, which the pthreads impl doesn't like and fails. + +Coincidentally, nspr here is compiled with debug on, which means it has +assertions turned on; under normal circumstances, those would be disabled, +the stack size set call would fail and everything would fall back on the +default 2M stacksize, but it would still be wrong - therefore, establish +a minimum, just like for aarch64. + +--- nspr-4.20/nspr/pr/include/md/_linux.h.old 2018-08-28 12:42:28.000000000 +0000 ++++ nspr-4.20/nspr/pr/include/md/_linux.h 2019-02-18 17:35:30.380000000 +0000 +@@ -71,7 +71,7 @@ + #define _MD_DEFAULT_STACK_SIZE 65536L + #define _MD_MMAP_FLAGS MAP_PRIVATE + +-#if defined(__aarch64__) || defined(__mips__) ++#if defined(__aarch64__) || defined(__mips__) || defined(__powerpc64__) + #define _MD_MINIMUM_STACK_SIZE 0x20000 + #endif + |