runtime: buffered write barrier for 386

Updates #22460.

Change-Id: I3c8e90fd6bcda7e28911036591873d63665aaca7
Reviewed-on: https://go-review.googlesource.com/92696
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
This commit is contained in:
Austin Clements 2017-11-15 14:54:24 -08:00
parent de186c63ce
commit 252f1170e5
9 changed files with 124 additions and 3 deletions

View file

@ -407,9 +407,11 @@ func Main(archInit func(*Arch)) {
Debug['l'] = 1 - Debug['l']
}
// The buffered write barrier is only implemented on amd64
// right now.
if objabi.GOARCH != "amd64" {
switch objabi.GOARCH {
case "amd64", "386":
default:
// Other architectures don't support the buffered
// write barrier yet.
Debug_eagerwb = 1
}