aboutsummaryrefslogtreecommitdiff
path: root/src/database/sql
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2023-05-25 12:47:06 -0400
committerRuss Cox <rsc@golang.org>2023-05-25 18:35:49 +0000
commit789701e93a6f0063b6ef2c52c0557c672553d0e2 (patch)
tree1e754baa911ace6cab318780da065687ae14bb37 /src/database/sql
parent82d5ebce96761083f5313b180c6b368be1912d42 (diff)
downloadgo-789701e93a6f0063b6ef2c52c0557c672553d0e2.tar.xz
runtime: change heapObjectsCanMove to a func
A var is problematic because the zero value is already false, so if it goes away, it will appear to be false. I'm also not sure about go:linkname on vars, so switch to func for both reasons. Also add a test. Change-Id: I2318a5390d98577aec025152e65543491489defb Reviewed-on: https://go-review.googlesource.com/c/go/+/498261 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: Austin Clements <austin@google.com>
Diffstat (limited to 'src/database/sql')
0 files changed, 0 insertions, 0 deletions