diff options
| author | Keith Randall <khr@golang.org> | 2024-03-15 14:30:34 -0700 |
|---|---|---|
| committer | Keith Randall <khr@golang.org> | 2024-03-18 17:08:44 +0000 |
| commit | b40dc30d24afe877f4b7d80c69b827765531cdc7 (patch) | |
| tree | 86f3c2200dfc54020c71edd962fabbec4aae13e5 /src/database/sql/sql_test.go | |
| parent | dda4b17ee4866a32a7d0b522f9a366cb6d687ce1 (diff) | |
| download | go-b40dc30d24afe877f4b7d80c69b827765531cdc7.tar.xz | |
cmd/compile: compute ptrBytes during CalcSize instead of on demand
Compute ptrBytes while computing the size of a type.
Requires an extra field on the type, but means that we don't
have potentially exponential behavior in the PtrDataSize computation.
For #65540.
Change-Id: Ia23c72bbd996730baddd32d9ed46cfc00c3472ee
Reviewed-on: https://go-review.googlesource.com/c/go/+/571543
Reviewed-by: Keith Randall <khr@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/database/sql/sql_test.go')
0 files changed, 0 insertions, 0 deletions
