We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00f974e commit 206a65cCopy full SHA for 206a65c
src/runtime/pinner.go
@@ -25,10 +25,8 @@ type Pinner struct {
25
// objects, these objects must be pinned separately if they are going to be
26
// accessed from C code.
27
//
28
-// The argument must be a pointer of any type or an
29
-// unsafe.Pointer. It must be the result of calling new,
30
-// taking the address of a composite literal, or taking the address of a
31
-// local variable. If one of these conditions is not met, Pin will panic.
+// The argument must be a pointer of any type or an unsafe.Pointer.
+// It must be a go pointer and cannot point to memory allocated by arena.
32
func (p *Pinner) Pin(pointer any) {
33
if p.pinner == nil {
34
// Check the pinner cache first.
0 commit comments