runtime: copy more of scheduler from Go 1.7 runtime
commita09e421e03b7d7082cc5182550565314aec938ab
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 9 Jan 2017 19:37:19 +0000 (9 19:37 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 9 Jan 2017 19:37:19 +0000 (9 19:37 +0000)
tree979f6f9c20889cbbef8a131ed63b6e7f4b7216f6
parentce1d93997b49005f4d61741d58f0b4d63d78b680
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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@244236 138bc75d-0d04-0410-961f-82ee72b054a4
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