From: hboehm Date: Wed, 15 Aug 2007 21:50:29 +0000 (+0000) Subject: 2007-08-15 Hans Boehm (really Samuel Thibault) X-Git-Tag: gc7_1alpha2~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=444ec0c5ecd2365b3b78c5942174e0be4617569f;p=gc 2007-08-15 Hans Boehm (really Samuel Thibault) * pthread_support.c (GC_thr_init): Use sysconf(_SC_NPROCESSORS_ONLN) for HURD. --- diff --git a/ChangeLog b/ChangeLog index 6e036d83..5956b18e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-08-15 Hans Boehm (really Samuel Thibault) + + * pthread_support.c (GC_thr_init): Use sysconf(_SC_NPROCESSORS_ONLN) + for HURD. + 2007-08-14 Hans Boehm (really David Daney) * include/private/gcconfig.h: Add Linux/mips-64 support. diff --git a/pthread_support.c b/pthread_support.c index df8e4b21..b028be7f 100644 --- a/pthread_support.c +++ b/pthread_support.c @@ -763,7 +763,7 @@ void GC_thr_init(void) GC_nprocs = pthread_num_processors_np(); # endif # if defined(GC_OSF1_THREADS) || defined(GC_AIX_THREADS) \ - || defined(GC_SOLARIS_THREADS) + || defined(GC_SOLARIS_THREADS) || defined(GC_GNU_THREADS) GC_nprocs = sysconf(_SC_NPROCESSORS_ONLN); if (GC_nprocs <= 0) GC_nprocs = 1; # endif @@ -783,9 +783,6 @@ void GC_thr_init(void) # if defined(GC_LINUX_THREADS) || defined(GC_DGUX386_THREADS) GC_nprocs = GC_get_nprocs(); # endif -# if defined(GC_GNU_THREADS) - if (GC_nprocs <= 0) GC_nprocs = 1; -# endif } if (GC_nprocs <= 0) { WARN("GC_get_nprocs() returned %ld\n", GC_nprocs);