runtime: copy Go 1.7 runtime semaphore code
authorIan Lance Taylor <ian@gcc.gnu.org>
Wed, 12 Oct 2016 15:38:56 +0000 (15:38 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 12 Oct 2016 15:38:56 +0000 (15:38 +0000)
commit543f217b7aea9a8cdc3b669c5ce7d56a1e944257
treee893441fcdcea3e67f857c489e3e5cb2851da59e
parent859e95abb84b67a2cb42d6e6013c16160d9c802d
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

From-SVN: r241067
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]