diff options
| author | Cuong Manh Le <cuong.manhle.vn@gmail.com> | 2021-10-19 16:34:43 +0700 |
|---|---|---|
| committer | Cuong Manh Le <cuong.manhle.vn@gmail.com> | 2021-10-19 16:19:27 +0000 |
| commit | f92a3589fa04285dccab3ca7454eaaf2d0e7cde3 (patch) | |
| tree | d939473c2be0eb22eb9324e4dffef2fbfb12dcb1 /src/reflect/export_test.go | |
| parent | fe7df4c4d043fc65800bbec7f575c1ba50327aa9 (diff) | |
| download | go-f92a3589fa04285dccab3ca7454eaaf2d0e7cde3.tar.xz | |
reflect: fix methodValueCall code pointer mismatched
CL 322350 changed how to take address of assembly functions, using
abi.FuncPCABI0 intrinsic. But we forgot to update the code in
Value.UnsafePointer (was Value.Pointer) to reflect that change.
This CL fixes that bug, and also add a test to make sure the code
pointer is in sync.
Change-Id: I05ae7df31c706583a0f374d8af027066528f5ceb
Reviewed-on: https://go-review.googlesource.com/c/go/+/356809
Trust: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src/reflect/export_test.go')
| -rw-r--r-- | src/reflect/export_test.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/reflect/export_test.go b/src/reflect/export_test.go index 01749e30d8..ba7fb68067 100644 --- a/src/reflect/export_test.go +++ b/src/reflect/export_test.go @@ -161,3 +161,5 @@ func SetArgRegs(ints, floats int, floatSize uintptr) (oldInts, oldFloats int, ol clearLayoutCache() return } + +var MethodValueCallCodePtr = methodValueCallCodePtr |
