From bdc6ae579aa86d21183c612c8c37916f397afaa8 Mon Sep 17 00:00:00 2001 From: David Chase Date: Fri, 20 Jan 2023 16:41:57 -0500 Subject: internal/abi: refactor (basic) type struct into one definition This touches a lot of files, which is bad, but it is also good, since there's N copies of this information commoned into 1. The new files in internal/abi are copied from the end of the stack; ultimately this will all end up being used. Change-Id: Ia252c0055aaa72ca569411ef9f9e96e3d610889e Reviewed-on: https://go-review.googlesource.com/c/go/+/462995 TryBot-Result: Gopher Robot Reviewed-by: Carlos Amedee Run-TryBot: David Chase Reviewed-by: Keith Randall --- src/runtime/export_debug_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/runtime/export_debug_test.go') diff --git a/src/runtime/export_debug_test.go b/src/runtime/export_debug_test.go index 2d8a133409..632b325912 100644 --- a/src/runtime/export_debug_test.go +++ b/src/runtime/export_debug_test.go @@ -32,19 +32,19 @@ func InjectDebugCall(gp *g, fn any, regArgs *abi.RegArgs, stackArgs any, tkill f } f := efaceOf(&fn) - if f._type == nil || f._type.kind&kindMask != kindFunc { + if f._type == nil || f._type.Kind_&kindMask != kindFunc { return nil, plainError("fn must be a function") } fv := (*funcval)(f.data) a := efaceOf(&stackArgs) - if a._type != nil && a._type.kind&kindMask != kindPtr { + if a._type != nil && a._type.Kind_&kindMask != kindPtr { return nil, plainError("args must be a pointer or nil") } argp := a.data var argSize uintptr if argp != nil { - argSize = (*ptrtype)(unsafe.Pointer(a._type)).elem.size + argSize = (*ptrtype)(unsafe.Pointer(a._type)).elem.Size_ } h := new(debugCallHandler) -- cgit v1.3-5-g9baa