summaryrefslogtreecommitdiff
path: root/lang/ruby19
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/ruby19
parentb92818123d5edc37a575dba4cc2c97f1f288e329 (diff)
Notes
Diffstat (limited to 'lang/ruby19')
-rw-r--r--lang/ruby19/files/patch-thread_pthread.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/lang/ruby19/files/patch-thread_pthread.c b/lang/ruby19/files/patch-thread_pthread.c
new file mode 100644
index 000000000000..d3a182729038
--- /dev/null
+++ b/lang/ruby19/files/patch-thread_pthread.c
@@ -0,0 +1,19 @@
+--- thread_pthread.c.orig 2013-03-28 10:10:00.000000000 +0000
++++ thread_pthread.c 2014-01-25 02:59:12.085473158 +0000
+@@ -1193,13 +1193,13 @@
+
+ pthread_attr_init(&attr);
+ #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,