Signal handling rewrite for Linux / i386

Andrew Haley aph@cambridge.redhat.com
Tue Jan 22 02:02:00 GMT 2002


Bryce McKinlay writes:
 > 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).
It's already fixed by linuxthreads at 2 megabytes. Only the main
thread's stack is variable sized.
Andrew.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /