]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: special case nowritebarrierrec for allocm
authorAustin Clements <austin@google.com>
Tue, 17 Nov 2015 22:28:35 +0000 (17:28 -0500)
committerAustin Clements <austin@google.com>
Thu, 19 Nov 2015 21:17:19 +0000 (21:17 +0000)
commit402e37d4a9dba9dfcfb106c2dc4ff1c264f7b6b7
tree981dc44809d8d1d2efb5e6b55f2b0dce9037e168
parentc84ae1c49970453158b511c54d5df63e438d2ce9
cmd/compile: special case nowritebarrierrec for allocm

allocm is a very unusual function: it is specifically designed to
allocate in contexts where m.p is nil by temporarily taking over a P.
Since allocm is used in many contexts where it would make sense to use
nowritebarrierrec, this commit teaches the nowritebarrierrec analysis
to stop at allocm.

Updates #10600.

Change-Id: I8499629461d4fe25712d861720dfe438df7ada9b
Reviewed-on: https://go-review.googlesource.com/17005
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/compile/internal/gc/dcl.go
src/runtime/proc.go