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

Tom Tromey tromey@redhat.com
Fri Oct 18 02:27:00 GMT 2013


>>>>> "Andrew" == Andrew  <gnu_andrew@member.fsf.org> 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 not portable though.

Tom



More information about the Java-patches mailing list