Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for cgoCheckResult (0.24 sec)

  1. src/runtime/cgocall.go

    func cgoInRange(p unsafe.Pointer, start, end uintptr) bool {
    	return start <= uintptr(p) && uintptr(p) < end
    }
    
    // cgoCheckResult is called to check the result parameter of an
    // exported Go function. It panics if the result is or contains any
    // other pointer into unpinned Go memory.
    func cgoCheckResult(val any) {
    	if !goexperiment.CgoCheck2 && debug.cgocheck == 0 {
    		return
    	}
    
    	ep := efaceOf(&val)
    	t := ep._type
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:47 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/issues_test.go

    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{})
    `
    	testFiles(t, []string{"p.go", "_cgo_gotypes.go"}, [][]byte{[]byte(src), []byte(cgoTypes)}, 0, false, func(cfg *Config) {
    		*boolFieldAddr(cfg, "go115UsesCgo") = true
    	})
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  3. src/go/types/issues_test.go

    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{})
    `
    	testFiles(t, []string{"p.go", "_cgo_gotypes.go"}, [][]byte{[]byte(src), []byte(cgoTypes)}, false, func(cfg *Config) {
    		*boolFieldAddr(cfg, "go115UsesCgo") = true
    	})
    }
    
    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