mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: avoid unnecessary map iteration write barrier
Update #14921 Change-Id: I5c5816d0193757bf7465b1e09c27ca06897df4bf Reviewed-on: https://go-review.googlesource.com/21814 Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Keith Randall <khr@golang.org>
This commit is contained in:
parent
a44c4256ae
commit
974c201f74
1 changed files with 3 additions and 1 deletions
|
|
@ -790,7 +790,9 @@ next:
|
|||
}
|
||||
}
|
||||
it.bucket = bucket
|
||||
it.bptr = b
|
||||
if it.bptr != b { // avoid unnecessary write barrier; see issue 14921
|
||||
it.bptr = b
|
||||
}
|
||||
it.i = i + 1
|
||||
it.checkBucket = checkBucket
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue