Lines 777-784
size_t pthread_get_stacksize_np(pthread_t);
Link Here
|
777 |
# define MAINSTACKADDR_AVAILABLE 0 |
777 |
# define MAINSTACKADDR_AVAILABLE 0 |
778 |
# endif |
778 |
# endif |
779 |
#endif |
779 |
#endif |
780 |
#if MAINSTACKADDR_AVAILABLE && !defined(get_main_stack) |
780 |
#if MAINSTACKADDR_AVAILABLE |
781 |
# define get_main_stack(addr, size) get_stack(addr, size) |
781 |
static int get_stack(void **, size_t *); |
|
|
782 |
static int |
783 |
get_main_stack(void **addr, size_t *size) |
784 |
{ |
785 |
get_stack(addr, size); |
786 |
|
787 |
/* On some architectures, the inital stack size may be too small, but fortunately, |
788 |
it's growable. Bump it up to the minimum needed if it is too small. */ |
789 |
if (*size < RUBY_VM_THREAD_VM_STACK_SIZE) |
790 |
*size = RUBY_VM_THREAD_VM_STACK_SIZE; |
791 |
} |
782 |
#endif |
792 |
#endif |
783 |
|
793 |
|
784 |
#ifdef STACKADDR_AVAILABLE |
794 |
#ifdef STACKADDR_AVAILABLE |
785 |
- |
|
|