aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/stack.go
diff options
context:
space:
mode:
authorCuong Manh Le <cuong.manhle.vn@gmail.com>2022-08-07 17:43:57 +0700
committerCuong Manh Le <cuong.manhle.vn@gmail.com>2022-08-19 00:29:18 +0000
commita719a78c1b36141af68d84970695fe95263fb896 (patch)
treec985cb9d95db5fdc57c5cf347f544b93bed82b1d /src/runtime/stack.go
parent833367e98af838a2511ee7e4e19dc8f1da7b8ed7 (diff)
downloadgo-a719a78c1b36141af68d84970695fe95263fb896.tar.xz
runtime: add and use runtime/internal/sys.NotInHeap
Updates #46731 Change-Id: Ic2208c8bb639aa1e390be0d62e2bd799ecf20654 Reviewed-on: https://go-review.googlesource.com/c/go/+/421878 Reviewed-by: Keith Randall <khr@google.com> Reviewed-by: Keith Randall <khr@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Diffstat (limited to 'src/runtime/stack.go')
-rw-r--r--src/runtime/stack.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/stack.go b/src/runtime/stack.go
index 0bfa9320e0..b94a4a7249 100644
--- a/src/runtime/stack.go
+++ b/src/runtime/stack.go
@@ -160,8 +160,8 @@ var stackpool [_NumStackOrders]struct {
_ [cpu.CacheLinePadSize - unsafe.Sizeof(stackpoolItem{})%cpu.CacheLinePadSize]byte
}
-//go:notinheap
type stackpoolItem struct {
+ _ sys.NotInHeap
mu mutex
span mSpanList
}