Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for cgoCheckPointer (0.23 sec)

  1. src/runtime/pinner_test.go

    	func() {
    		defer assertDidPanic(t)
    		runtime.CgoCheckPointer(p2, nil)
    	}()
    	pinner.Pin(p)
    	runtime.CgoCheckPointer(p2, nil)
    }
    
    func TestPinnerCgoCheckInterface(t *testing.T) {
    	var pinner runtime.Pinner
    	defer pinner.Unpin()
    	var ifc any
    	var o obj
    	ifc = &o
    	p := &ifc
    	assertCgoCheckPanics(t, p)
    	pinner.Pin(&o)
    	runtime.CgoCheckPointer(p, true)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 13 18:36:12 UTC 2023
    - 11K bytes
    - Viewed (0)
  2. src/runtime/cgocall.go

    // cgoCheckPointer will pin the pointer for the duration of the cgo
    // call.  (This is necessary but not sufficient; the cgo program will
    // also have to change to pin Go pointers that cannot point to Go
    // pointers.)
    
    // cgoCheckPointer checks if the argument contains a Go pointer that
    // points to an unpinned Go pointer, and panics if it does.
    func cgoCheckPointer(ptr any, arg any) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:47 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  3. src/runtime/export_test.go

    var PhysPageSize = physPageSize
    var PhysHugePageSize = physHugePageSize
    
    var NetpollGenericInit = netpollGenericInit
    
    var Memmove = memmove
    var MemclrNoHeapPointers = memclrNoHeapPointers
    
    var CgoCheckPointer = cgoCheckPointer
    
    const CrashStackImplemented = crashStackImplemented
    
    const TracebackInnerFrames = tracebackInnerFrames
    const TracebackOuterFrames = tracebackOuterFrames
    
    var MapKeys = keys
    var MapValues = values
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/issues_test.go

    	field _Ctype_int
    }
    
    type _Ctype_void [0]byte
    
    //go:linkname _cgo_runtime_cgocall runtime.cgocall
    func _cgo_runtime_cgocall(unsafe.Pointer, uintptr) int32
    
    //go:linkname _cgoCheckPointer runtime.cgoCheckPointer
    func _cgoCheckPointer(interface{}, interface{})
    
    //go:linkname _cgoCheckResult runtime.cgoCheckResult
    func _cgoCheckResult(interface{})
    `
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  5. src/go/types/issues_test.go

    	field _Ctype_int
    }
    
    type _Ctype_void [0]byte
    
    //go:linkname _cgo_runtime_cgocall runtime.cgocall
    func _cgo_runtime_cgocall(unsafe.Pointer, uintptr) int32
    
    //go:linkname _cgoCheckPointer runtime.cgoCheckPointer
    func _cgoCheckPointer(interface{}, interface{})
    
    //go:linkname _cgoCheckResult runtime.cgoCheckResult
    func _cgoCheckResult(interface{})
    `
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 28.1K bytes
    - Viewed (0)
Back to top