Re: [PATCH] PR58669: does not detect all cpu cores/threads

2013-10-18 Thread Andïï
On 18 October 2013 03:27, Tom Tromey wrote: >> "Andrew" == Andrew writes: > > Andrew> +#ifdef HAVE_UNISTD_H > Andrew> + procs = sysconf(_SC_NPROCESSORS_ONLN); > Andrew> +#endif > > Space before the "(". > > Technically you should probably check for sysconf in configure.ac. > I'm not sure wh

Re: [PATCH] PR58669: does not detect all cpu cores/threads

2013-10-17 Thread Tom Tromey
> "Andrew" == Andrew writes: Andrew> +#ifdef HAVE_UNISTD_H Andrew> + procs = sysconf(_SC_NPROCESSORS_ONLN); Andrew> +#endif Space before the "(". Technically you should probably check for sysconf in configure.ac. I'm not sure whether it matters any more. I think _SC_NPROCESSORS_ONLN is n

[PATCH] PR58669: does not detect all cpu cores/threads

2013-10-17 Thread Andrew
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58669 Testing: $ /usr/lib/jvm/icedtea-6/bin/java TestProcessors Processors: 8 $ /usr/lib/jvm/gcj-jdk/bin/java -version java version "1.5.0" gij (GNU libgcj) version 4.8.1 $ /usr/lib/jvm/gcj-jdk/bin/java TestProcessors Processors: 1 $ /home/andrew/buil