This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Decrease number of threads used by goroutines.go test (take 2)
On Tue, Mar 08, 2011 at 07:56:38PM +0100, Rainer Orth wrote:
> Jakub Jelinek <jakub@redhat.com> writes:
> At best, it's shell-specific: Solaris 11 /bin/sh (which is ksh93) does
> have it, although admittedly previous Solaris/IRIX/Tru64 UNIX shells
> don't. On the other hand, bash has it on all of those systems.
>
> Why not simply test if ulimit -u doesn't error and then use it? I'd
> very much prefer this to a solution that is unnecessarily OS-specific.
I'm happy to drop the [ ishost "*-linux*" ] && if you are going to look for
failures on weirdo OSes. I have no idea what ulimit -u does on anything but
Linux, while the tcl code only uses its value if it printed a number,
whether it is something similar to limit on number of each user's threads
or something completely else is unclear.
Jakub