Re: libgo patch committed: Support NumCPU on more platforms

2012-08-09 Thread Ian Lance Taylor
On Tue, Aug 7, 2012 at 5:21 AM, Richard Earnshaw wrote: > > Wouldn't it be more useful on Linux to check the task's affinity > settings? Then when a task is locked to a limited set of cores it won't > overload those cores with threads. This suggestion was implemented by Shenghou Ma, as attached.

Re: libgo patch committed: Support NumCPU on more platforms

2012-08-07 Thread Ian Lance Taylor
On Tue, Aug 7, 2012 at 5:21 AM, Richard Earnshaw wrote: > > Wouldn't it be more useful on Linux to check the task's affinity > settings? Then when a task is locked to a limited set of cores it won't > overload those cores with threads. Good question. I'm not sure. This patch does not change th

Re: libgo patch committed: Support NumCPU on more platforms

2012-08-07 Thread Richard Earnshaw
On 07/08/12 05:43, Ian Lance Taylor wrote: > This patch to libgo, from Shenghou Ma, adds support for NumCPU on > additional platforms: Solaris, Irix, *BSD, Darwin. Bootstrapped and ran > Go testsuite on x86_64-unknown-linux-gnu. Committed to mainline. > > Ian > > Wouldn't it be more useful on