]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj: remove Link.Plan9privates
authorJosh Bleecher Snyder <josharian@gmail.com>
Wed, 12 Apr 2017 13:11:08 +0000 (06:11 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Wed, 12 Apr 2017 15:56:14 +0000 (15:56 +0000)
commit49f4b5a4f5257e17cc62ad5d7862fdb4a5cfa7a0
tree25f581332d97367a5eb6361a04f3ec931b52647d
parentb8d327a438c99daa46acde41aebdcc77781fb9ee
cmd/internal/obj: remove Link.Plan9privates

Move it to the x86 package, matching our handling
of deferreturn in x86 and arm.
While we're here, improve the concurrency safety
of both Plan9privates and deferreturn
by eagerly initializing them in instinit.

Updates #15756

Change-Id: If3b1995c1e4ec816a5443a18f8d715631967a8b1
Reviewed-on: https://go-review.googlesource.com/40408
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/internal/obj/link.go
src/cmd/internal/obj/x86/asm6.go
src/cmd/internal/obj/x86/obj6.go