Mail Archives: cygwin/2012/02/13/06:57:37
On Feb 13 10:22, Manuel Wienand wrote:
> Hi Corinna,
>
> thanks for the info about the stack sizes.
>
> > [...]
> > pthread_attr_t attr;
> > pthread_attr_init (&attr);
> > pthread_attr_setstacksize (&attr, 1024 * 1024);
> >
> > ret = pthread_create(&threadId, &attr, callGlob, NULL);
> > [...]
>
> Jep, that works for me.
Apart from that I set the default stack size to 1 Megs.
Thanks for your testcase, btw.
It helped me a lot to understand how Windows handles the stack and the
stack guard pages. With its help I also found two long-standing
problems in glob(). When I added the glob implementation from FreeBSD,
I made some innocent changes which turned out to waste a lot of stack
space. And, at the time we had no locale support so I removed it from
the code, so I took the opportunity to add locale support back into the
code.
I'm still testing one of my changes before checking in, but I'm almost
GTG.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
- Raw text -