mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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:
parent
de186c63ce
commit
252f1170e5
9 changed files with 124 additions and 3 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue