mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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>
This commit is contained in:
parent
833367e98a
commit
a719a78c1b
19 changed files with 133 additions and 125 deletions
|
|
@ -18,7 +18,7 @@ type slice struct {
|
|||
cap int
|
||||
}
|
||||
|
||||
// A notInHeapSlice is a slice backed by go:notinheap memory.
|
||||
// A notInHeapSlice is a slice backed by runtime/internal/sys.NotInHeap memory.
|
||||
type notInHeapSlice struct {
|
||||
array *notInHeap
|
||||
len int
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue