runtime: copy Go 1.7 runtime semaphore code
commitf16059142ffcbc56bb5b1cebbf5bcb9f2d58cb28
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 12 Oct 2016 15:38:56 +0000 (12 15:38 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 12 Oct 2016 15:38:56 +0000 (12 15:38 +0000)
treee893441fcdcea3e67f857c489e3e5cb2851da59e
parentef51c561d74bfd1e54b9052e350d4b97617df71f
runtime: copy Go 1.7 runtime semaphore code

    This triggered a check in releaseSudog that g.param not nil, because
    libgo uses the param field when starting a goroutine.  Fixed by clearing
    g->param in kickoff in proc.c.

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@241067 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/go/gofrontend/MERGE
libgo/Makefile.am
libgo/Makefile.in
libgo/go/runtime/sema.go [new file with mode: 0644]
libgo/runtime/proc.c
libgo/runtime/runtime.h
libgo/runtime/sema.goc [deleted file]