• Austin Clements's avatar
    runtime: allow more CPUs on FreeBSD · a714470c
    Austin Clements authored
    Currently the FreeBSD CPU affinity code assumes that the maximum
    GOMAXPROCS is 256, but we just removed that limit.
    
    This commit rewrites the FreeBSD CPU affinity code to raise the CPU
    count limit to 65,536, like the Linux CPU affinity code, and to
    degrade more gracefully if we do somehow go over that.
    
    Change-Id: Ic4ca7f88bd8b9448aae4dbd43ef21a6c1b8fea63
    Reviewed-on: https://go-review.googlesource.com/66291
    Run-TryBot: Austin Clements <austin@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    a714470c
os_freebsd.go 8.72 KB