diff options
| author | David Chase <drchase@google.com> | 2023-04-25 19:14:05 -0400 |
|---|---|---|
| committer | David Chase <drchase@google.com> | 2023-05-11 13:45:40 +0000 |
| commit | 2e93fe0a9f55aaa2a762e7fb454d76b2ee3a4e4f (patch) | |
| tree | 6ad00fee3adb58714aa001ece696eeebeb2b5087 /src/runtime/export_test.go | |
| parent | a2838ec5f20b56e94a18c873ab4b68397355e214 (diff) | |
| download | go-2e93fe0a9f55aaa2a762e7fb454d76b2ee3a4e4f.tar.xz | |
runtime: move per-type types to internal/abi
Change-Id: I1f031f0f83a94bebe41d3978a91a903dc5bcda66
Reviewed-on: https://go-review.googlesource.com/c/go/+/489276
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
Run-TryBot: David Chase <drchase@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/runtime/export_test.go')
| -rw-r--r-- | src/runtime/export_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/runtime/export_test.go b/src/runtime/export_test.go index cfd7805b5e..07d14591a6 100644 --- a/src/runtime/export_test.go +++ b/src/runtime/export_test.go @@ -235,7 +235,7 @@ func BenchSetType(n int, x any) { var p unsafe.Pointer switch t.Kind_ & kindMask { case kindPtr: - t = (*ptrtype)(unsafe.Pointer(t)).elem + t = (*ptrtype)(unsafe.Pointer(t)).Elem size = t.Size_ p = e.data case kindSlice: @@ -243,7 +243,7 @@ func BenchSetType(n int, x any) { ptr unsafe.Pointer len, cap uintptr })(e.data) - t = (*slicetype)(unsafe.Pointer(t)).elem + t = (*slicetype)(unsafe.Pointer(t)).Elem size = t.Size_ * slice.len p = slice.ptr } @@ -602,7 +602,7 @@ func MapTombstoneCheck(m map[int]int) { t := *(**maptype)(unsafe.Pointer(&i)) for x := 0; x < 1<<h.B; x++ { - b0 := (*bmap)(add(h.buckets, uintptr(x)*uintptr(t.bucketsize))) + b0 := (*bmap)(add(h.buckets, uintptr(x)*uintptr(t.BucketSize))) n := 0 for b := b0; b != nil; b = b.overflow(t) { for i := 0; i < bucketCnt; i++ { @@ -1757,7 +1757,7 @@ func (a *UserArena) New(out *any) { if typ.Kind_&kindMask != kindPtr { panic("new result of non-ptr type") } - typ = (*ptrtype)(unsafe.Pointer(typ)).elem + typ = (*ptrtype)(unsafe.Pointer(typ)).Elem i.data = a.arena.new(typ) } |
