diff options
| author | Jake Bailey <jacob.b.bailey@gmail.com> | 2026-02-27 10:10:14 -0800 |
|---|---|---|
| committer | Cherry Mui <cherryyz@google.com> | 2026-03-24 12:20:35 -0700 |
| commit | 3390ec59af33d3c9ab431ff88a245b710b7c9e40 (patch) | |
| tree | 9df5a104879fdf88c757cee5ecac3c02f86dbdc9 /src/runtime | |
| parent | 55600733988b0d3bb708be22b5cbecd8edd83380 (diff) | |
| download | go-3390ec59af33d3c9ab431ff88a245b710b7c9e40.tar.xz | |
internal/abi, cmd/link: centralize type descriptor size calculation
The linker hardcoded the calculation for some types, which caused me
some annoyance in CL 711560 because I didn't know it needed to be
updated (and it took me a long time to find the hardcoded value).
Move this calculation over to the abi package, similar to other funcs.
Then update rttype.Init to also check that the function works, like
again like other funcs in this package.
This actually caught a latent bug; decodetypeMethods was incorrectly
calculating the size for the Interface case!
Change-Id: Iaa66055061b68ec93c9912ae6aa6e605260f52a8
Reviewed-on: https://go-review.googlesource.com/c/go/+/749961
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src/runtime')
0 files changed, 0 insertions, 0 deletions
