sparc stack and heap

Marek Prochazka Marek.Prochazka at scisys.co.uk
Mon Aug 21 13:56:07 UTC 2006


> AFAIK, CONFIGURE_INIT_STACK_SIZE does only change the stack 
> size of the 
> init task.
> For pthread this is defined by default in:
> cpukit/posix /include/rtems/posix/pthread.h at line 26:
> #define PTHREAD_MINIMUM_STACK_SIZE (STACK_MINIMUM_SIZE * 2)

Aaaah, thanks for this, now my pthread stack size gets set using
pthread_attr_setstacksize and all seems to be O.K.

> Also you can enable the stack checker (#define 
> STACK_CHECKER_ON in your 
> appllication header)

What will happen if STACK_CHECKER_ON is defined and stack overflow
occurs?

Thanks very much,
Marek




More information about the users mailing list