cvs commit: src/lib/libpthread/thread thr_attr_init.c thr_init.c thr_private.h thr_stack.c

John-Mark Gurney gurney_j at resnet.uoregon.edu
Mon Feb 14 23:13:03 GMT 2005


Maxime Henrion wrote this message on Mon, Feb 14, 2005 at 23:49 +0100:
> I entirely understand this and when I asked you why you weren't using
> pthread_attr_setstacksize() it was out of curiosity.  Anyways, I'm
> surprised there's still an argument about this.  __FreeBSD_version bumps
> are cheap, and if it can help reduce the maintainance burden of a port,
> I'm all for it.

My point behind not doing a version bump is that if there is knowledge
that the program needs a large/small stack, then it should ALWAYS request
the stack size so that it is truely portable to all platforms.. instead
of trying to berate OS xyz into increasing their default stack size...
or end up breaking because this program tried to create 5000 threads, but
failed because each stack took up 1MB and required 5GB of ram on a 32bit
system....

If the patch is applicable before the default change, then it is applicable
after, and if the patch is applicable after the default change, it was
applicable before...

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."


More information about the cvs-src mailing list