All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [Xenomai] [Xenomai-git] Jan Kiszka : lib/cobalt: Introduce and use COBALT_STACKSIZE_DEFAULT/MIN
       [not found] <E1Yka0Q-00008T-J2@sd-51317.xenomai.org>
@ 2015-04-21 15:30 ` Gilles Chanteperdrix
  0 siblings, 0 replies; only message in thread
From: Gilles Chanteperdrix @ 2015-04-21 15:30 UTC (permalink / raw)
  To: xenomai; +Cc: xenomai-git

On Tue, Apr 21, 2015 at 05:22:34PM +0200, git repository hosting wrote:
> +#define COBALT_STACKSIZE_MIN		(PTHREAD_STACK_MIN * 2)
> +#define COBALT_STACKSIZE_DEFAULT	(PTHREAD_STACK_MIN * 4)

This looks like a bad idea to me, I preferred __WORDSIZE * 1024.
Some architectures (I think ppc64 or ia64 had that) have
sufficiently large values of PTHREAD_STACK_MIN, so there is no
reason to set a larger default in that case. On the other hand, if
PTHREAD_STACK_MIN causes printf to fail with a stack overflow, we
want a larger default stack size, because the average user will not
expect printf to cause a stack overflow.

-- 
					    Gilles.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-04-21 15:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <E1Yka0Q-00008T-J2@sd-51317.xenomai.org>
2015-04-21 15:30 ` [Xenomai] [Xenomai-git] Jan Kiszka : lib/cobalt: Introduce and use COBALT_STACKSIZE_DEFAULT/MIN Gilles Chanteperdrix

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.