sparc stack and heap

Yacine EL KOLLI yacine.elkolli at crf.canon.fr
Mon Aug 21 14:27:10 UTC 2006


Marek Prochazka wrote:
>>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?

when STACK_CHECKER_ON is defined the stack boundaries of each task are 
verified during context switch, if a stack overflow is detected then a 
blown stack error is reported on the console output.

> Thanks very much,
> Marek
> 

Welcome
Yacine.
-- 
=====================================================
EL KOLLI Yacine         | yacine.elkolli at crf.canon.fr
Canon C.R.F.            | Phone: +33.(0)2.99.87.68.79
http://www.crf.canon.fr | FAX: +33.(0)2.99.84.11.30
====================================================



More information about the users mailing list