Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/kernel/startup.cfa

    reaf269d r1757f98  
    403403
    404404        __cfaabi_tls.this_thread->curr_cor = dst;
    405         __stack_prepare( &dst->stack, DEFAULT_STACK_SIZE );
     405        __stack_prepare( &dst->stack, 65000 );
    406406        __cfactx_start(main, dst, this->runner, __cfactx_invoke_coroutine);
    407407
     
    721721        check( pthread_attr_init( &attr ), "pthread_attr_init" ); // initialize attribute
    722722
    723         size_t stacksize = DEFAULT_STACK_SIZE;
     723        size_t stacksize;
     724        // default stack size, normally defined by shell limit
     725        check( pthread_attr_getstacksize( &attr, &stacksize ), "pthread_attr_getstacksize" );
     726        assert( stacksize >= PTHREAD_STACK_MIN );
    724727
    725728        void * stack;
     
    746749        #endif
    747750
     751
    748752        check( pthread_attr_setstack( &attr, stack, stacksize ), "pthread_attr_setstack" );
     753
    749754        check( pthread_create( pthread, &attr, start, arg ), "pthread_create" );
    750755        return stack;
Note: See TracChangeset for help on using the changeset viewer.