]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix unsafe-point analysis with -N
authorAustin Clements <austin@google.com>
Tue, 22 May 2018 15:07:43 +0000 (11:07 -0400)
committerAustin Clements <austin@google.com>
Tue, 22 May 2018 15:26:32 +0000 (15:26 +0000)
commit97bea970651f0df86e245b2b2596003a174fb5d7
treec7acd79aa04563ac15ddd1f59b62ed4ba6919263
parent5437cde96cd4228c3b3405cd138b410ffa5523c2
cmd/compile: fix unsafe-point analysis with -N

Compiling without optimizations (-N) can result in write barrier
blocks that have been optimized away but not actually pruned from the
block set. Fix unsafe-point analysis to recognize and ignore these.

For #24543.

Change-Id: I2ca86fb1a0346214ec71d7d6c17b6a121857b01d
Reviewed-on: https://go-review.googlesource.com/114076
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: David Chase <drchase@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/gc/plive.go