diff options
| author | Russ Cox <rsc@golang.org> | 2023-05-25 12:47:06 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2023-05-25 18:35:49 +0000 |
| commit | 789701e93a6f0063b6ef2c52c0557c672553d0e2 (patch) | |
| tree | 1e754baa911ace6cab318780da065687ae14bb37 /src/database/sql/sql.go | |
| parent | 82d5ebce96761083f5313b180c6b368be1912d42 (diff) | |
| download | go-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/sql.go')
0 files changed, 0 insertions, 0 deletions
