⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Ruby master
All Projects
Ruby
»
Ruby master
Overview
Activity
Roadmap
Issues
Repository
Like
Download (746 Bytes)
Bug #8783
ยป patch-ppc64-fix-thread_pthread.c
swills (Steve Wills)
, 01/21/2014 05:42 AM
---
thread_pthread
.
c
.
old
2013
-
11
-
08
14
:
52
:
58
.
379030304
-
0800
+++
thread_pthread
.
c
2013
-
11
-
08
14
:
53
:
35
.
641030655
-
0800
@@
-
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
,
(1-1/1)
Loading...