diff options
| author | Cuong Manh Le <cuong.manhle.vn@gmail.com> | 2023-06-13 22:25:50 +0700 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-08-09 17:03:21 +0000 |
| commit | 5b2ddfadb2e218e325c91d1024ffbe87c1f38d19 (patch) | |
| tree | a5d7673aa4df4f16562cd9e2f9c73f91a9c8d116 /src/runtime/export_test.go | |
| parent | 8c5a54f698873244694c8e6f20d3794a5f32ba3f (diff) | |
| download | go-5b2ddfadb2e218e325c91d1024ffbe87c1f38d19.tar.xz | |
cmd/compile: mark instantiated functions from package runtime as norace
Fixes #60439
Change-Id: I09fcd2d3deb7f80ed012a769fdb6f53b09c0290b
Reviewed-on: https://go-review.googlesource.com/c/go/+/502895
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/runtime/export_test.go')
| -rw-r--r-- | src/runtime/export_test.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/runtime/export_test.go b/src/runtime/export_test.go index 5641005401..a4a1fa580d 100644 --- a/src/runtime/export_test.go +++ b/src/runtime/export_test.go @@ -1932,3 +1932,11 @@ func SetPinnerLeakPanic(f func()) { func GetPinnerLeakPanic() func() { return pinnerLeakPanic } + +var testUintptr uintptr + +func MyGenericFunc[T any]() { + systemstack(func() { + testUintptr = 4 + }) +} |
