Thread

Posted on Mon Mar 20 22:15:34 2006 by jdhedden
threads v1.13 - Granular stack size
It turns out that a number of platforms require that thread stack size be a multiple of the memory page size (usually 4096 or 8192). Therefore, I changed set_stack_size to round up the stack size accordingly. Also, some platforms have a minimum stack size. That will be used as well, and a warning issued if the stack size parameter is below the minimum.
Direct Responses: 1994 | Write a response
Posted on Tue Mar 21 13:27:01 2006 by tonyw in response to 1985
Re: threads v1.13 - Granular stack size
This seems to have broken something; make now fails:

cc -c -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include - +Os -DVERSION=\"1.13\" -DXS_VERSION=\"1.13\" "-I/usr/local/lib/perl5/5.8.8/darwin-thread-multi-2 +level/CORE" threads.c threads.xs: In function `good_stack_size': threads.xs:317: error: parse error before "UVdf" make: *** [threads.o] Error 1


This has been raised as bug 18263
Direct Responses: 1998 | Write a response
Posted on Tue Mar 21 15:49:11 2006 by jdhedden in response to 1994
Re: threads v1.13 - Granular stack size
I just uploaded a fix to CPAN.
Write a response