]> Cypherpunks repositories - gostls13.git/commit
runtime: pass a smaller buffer to sched_getaffinity on ARM
authorMichael Hudson-Doyle <michael.hudson@canonical.com>
Fri, 24 Jul 2015 02:26:29 +0000 (14:26 +1200)
committerAustin Clements <austin@google.com>
Mon, 27 Jul 2015 01:04:10 +0000 (01:04 +0000)
commit2b0ddb6c23be1566ae11f71f2269813bd46c52fa
treece5ab4c36573b470c4fd2c5a87fafa4662432da6
parentdc4dd57594f92c67bfbf443a87e0f614cfddbf95
runtime: pass a smaller buffer to sched_getaffinity on ARM

The system stack is only around 8kb on ARM so one can't put an 8kb buffer on
the stack. More than 1024 ARM cores seems sufficiently unlikely for the
foreseeable future.

Fixes #11853

Change-Id: I7cb27c1250a6153f86e269c172054e9dfc218c72
Reviewed-on: https://go-review.googlesource.com/12622
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/os1_linux.go