runtime: copy more of scheduler from Go 1.7 runtime
authorIan Lance Taylor <ian@gcc.gnu.org>
Mon, 9 Jan 2017 19:37:19 +0000 (19:37 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Mon, 9 Jan 2017 19:37:19 +0000 (19:37 +0000)
commit2193ad7fbf3e917a0ef5a2b48e13f84da1be44f1
tree979f6f9c20889cbbef8a131ed63b6e7f4b7216f6
parentd1261ac6eb62f0c589ef314c61884ab445e5552b
runtime: copy more of scheduler from Go 1.7 runtime

    This started by moving procresize from C to Go so that we can pass the
    right type to the memory allocator when allocating a p, which forced
    the gomaxprocs variable to move from C to Go, and everything else
    followed from that.

    Reviewed-on: https://go-review.googlesource.com/34916

From-SVN: r244236
16 files changed:
gcc/go/gofrontend/MERGE
libgo/go/runtime/debug.go
libgo/go/runtime/export_test.go
libgo/go/runtime/lock_futex.go
libgo/go/runtime/lock_sema.go
libgo/go/runtime/proc.go
libgo/go/runtime/proc_test.go
libgo/go/runtime/runtime2.go
libgo/go/runtime/stubs.go
libgo/go/runtime/trace.go
libgo/runtime/heapdump.c
libgo/runtime/malloc.goc
libgo/runtime/malloc.h
libgo/runtime/mgc0.c
libgo/runtime/proc.c
libgo/runtime/runtime.h