Signal handling rewrite for Linux / i386

Bryce McKinlay bryce@waitaki.otago.ac.nz
Mon Jan 21 17:44:00 GMT 2002


Andrew Haley wrote:

>+ // Size of a thread's stack
>+ #define STACK_SIZE (1024 * 1024)
>

Is it wise to fix the size of the stack like this? Don't we lose 
something by circumventing the kernel's variable-size/floating stack 
feature? Certainly, it seems that ulimit -s won't be respected (which 
can be useful if you want to run a lot of threads on a 32-bit machine 
and avoid running out of virtual memory).

regards

Bryce.




More information about the Java mailing list