Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
f8fa3e28
Commit
f8fa3e28
authored
Sep 03, 2010
by
antirez
Browse files
Fix for issue 237 backported from master
parent
32241a0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
redis.c
View file @
f8fa3e28
...
@@ -8902,6 +8902,11 @@ static void vmInit(void) {
...
@@ -8902,6 +8902,11 @@ static void vmInit(void) {
/* LZF requires a lot of stack */
/* LZF requires a lot of stack */
pthread_attr_init(&server.io_threads_attr);
pthread_attr_init(&server.io_threads_attr);
pthread_attr_getstacksize(&server.io_threads_attr, &stacksize);
pthread_attr_getstacksize(&server.io_threads_attr, &stacksize);
/* Solaris may report a stacksize of 0, let's set it to 1 otherwise 115
* multiplying it by 2 in the while loop later will not really help ;) */
if (!stacksize) stacksize = 1;
while (stacksize < REDIS_THREAD_STACK_SIZE) stacksize *= 2;
while (stacksize < REDIS_THREAD_STACK_SIZE) stacksize *= 2;
pthread_attr_setstacksize(&server.io_threads_attr, stacksize);
pthread_attr_setstacksize(&server.io_threads_attr, stacksize);
/* Listen for events in the threaded I/O pipe */
/* Listen for events in the threaded I/O pipe */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment