aboutsummaryrefslogtreecommitdiff
path: root/lang/ruby20
diff options
context:
space:
mode:
authorSteve Wills <swills@FreeBSD.org>2014-01-25 22:10:56 +0000
committerSteve Wills <swills@FreeBSD.org>2014-01-25 22:10:56 +0000
commita3094148c670f556047992cdfa65e410fb482765 (patch)
tree3edbfa65c2a37086d64280947c41b5d8c61c8db2 /lang/ruby20
parentb92818123d5edc37a575dba4cc2c97f1f288e329 (diff)
Notes
Diffstat (limited to 'lang/ruby20')
-rw-r--r--lang/ruby20/files/patch-thread_pthread.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/lang/ruby20/files/patch-thread_pthread.c b/lang/ruby20/files/patch-thread_pthread.c
new file mode 100644
index 000000000000..c3ae23dac5f2
--- /dev/null
+++ b/lang/ruby20/files/patch-thread_pthread.c
@@ -0,0 +1,19 @@
+--- thread_pthread.c.orig 2013-05-01 15:40:57.000000000 +0000
++++ thread_pthread.c 2014-01-25 03:00:55.044466722 +0000
+@@ -1420,13 +1420,13 @@
+ exit(EXIT_FAILURE);
+ }
+ # ifdef PTHREAD_STACK_MIN
+- if (PTHREAD_STACK_MIN < 4096 * 3) {
++ if (PTHREAD_STACK_MIN < 4096 * 4) {
+ /* Allocate the machine stack for the timer thread
+- * at least 12KB (3 pages). FreeBSD 8.2 AMD64 causes
++ * at least 16KB (4 pages). FreeBSD 8.2 AMD64 causes
+ * machine stack overflow only with PTHREAD_STACK_MIN.
+ */
+ pthread_attr_setstacksize(&attr,
+- 4096 * 3 + (THREAD_DEBUG ? BUFSIZ : 0));
++ 4096 * 4 + (THREAD_DEBUG ? BUFSIZ : 0));
+ }
+ else {
+ pthread_attr_setstacksize(&attr,