Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 56 for gofunc (0.1 sec)

  1. src/runtime/syscall_windows_test.go

    		t.Fatalf("expected 123, but got %d", ec)
    	}
    }
    
    type cbFunc struct {
    	goFunc any
    }
    
    func (f cbFunc) cName(cdecl bool) string {
    	name := "stdcall"
    	if cdecl {
    		name = "cdecl"
    	}
    	t := reflect.TypeOf(f.goFunc)
    	for i := 0; i < t.NumIn(); i++ {
    		name += "_" + t.In(i).Name()
    	}
    	return name
    }
    
    func (f cbFunc) cSrc(w io.Writer, cdecl bool) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 31 16:31:35 UTC 2023
    - 32.5K bytes
    - Viewed (0)
  2. src/cmd/link/internal/ld/ld_test.go

    	}
    	for unexpected, n := range unexpectedErrors {
    		t.Errorf("unexpected error: %s (x%d)", unexpected, n)
    	}
    }
    
    const carchiveSrcText = `
    package main
    
    //export GoFunc
    func GoFunc() {
    	println(42)
    }
    
    func main() {
    }
    `
    
    func TestArchiveBuildInvokeWithExec(t *testing.T) {
    	t.Parallel()
    	testenv.MustHaveGoBuild(t)
    	testenv.MustHaveCGO(t)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 05:45:53 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  3. src/cmd/link/internal/ld/pcln.go

    }
    
    // writeFuncs writes the func structures and pcdata to runtime.functab.
    func writeFuncs(ctxt *Link, sb *loader.SymbolBuilder, funcs []loader.Sym, inlSyms map[loader.Sym]loader.Sym, startLocations, cuOffsets []uint32, nameOffsets map[loader.Sym]uint32) {
    	ldr := ctxt.loader
    	deferReturnSym := ldr.Lookup("runtime.deferreturn", abiInternalVer)
    	gofunc := ldr.Lookup("go:func.*", 0)
    	gofuncBase := ldr.SymValue(gofunc)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 29.6K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/testcshared/cshared_test.go

    	if strings.TrimSpace(out) != "PASS" {
    		t.Error(out)
    	}
    }
    
    func checkNumberOfExportedFunctionsWindows(t *testing.T, exportAllSymbols bool) {
    	const prog = `
    package main
    
    import "C"
    
    //export GoFunc
    func GoFunc() {
    	println(42)
    }
    
    //export GoFunc2
    func GoFunc2() {
    	println(24)
    }
    
    func main() {
    }
    `
    
    	tmpdir := t.TempDir()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 13:19:50 UTC 2023
    - 21K bytes
    - Viewed (0)
  5. src/runtime/symtab.go

    }
    
    func (f *Func) raw() *_func {
    	return (*_func)(unsafe.Pointer(f))
    }
    
    func (f *Func) funcInfo() funcInfo {
    	return f.raw().funcInfo()
    }
    
    func (f *_func) funcInfo() funcInfo {
    	// Find the module containing fn. fn is located in the pclntable.
    	// The unsafe.Pointer to uintptr conversions and arithmetic
    	// are safe because we are working with module addresses.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 40K bytes
    - Viewed (0)
  6. src/runtime/stkframe.go

    	// stackObjectRecord.gcdata() will work correctly with it.
    	ptr := uintptr(unsafe.Pointer(&methodValueCallFrameObjs[0]))
    	var mod *moduledata
    	for datap := &firstmoduledata; datap != nil; datap = datap.next {
    		if datap.gofunc <= ptr && ptr < datap.end {
    			mod = datap
    			break
    		}
    	}
    	if mod == nil {
    		throw("methodValueCallFrameObjs is not in a module")
    	}
    	methodValueCallFrameObjs[0] = stackObjectRecord{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:10:48 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/validating/dispatcher.go

    	wg.Add(len(relevantHooks))
    	for i := range relevantHooks {
    		go func(invocation *generic.WebhookInvocation, idx int) {
    			ignoreClientCallFailures := false
    			hookName := "unknown"
    			versionedAttr := versionedAttrAccessor.versionedAttrs[invocation.Kind]
    			// The ordering of these two defers is critical. The wg.Done will release the parent go func to close the errCh
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 20:24:12 UTC 2023
    - 13K bytes
    - Viewed (0)
  8. src/runtime/runtime2.go

    	// that index's table. e.g.,
    	// &moduledata.pctab[_func.pcdata[_PCDATA_UnsafePoint]] is the start of
    	// the unsafe point table.
    	//
    	// An offset of 0 indicates that there is no table.
    	//
    	// pcdata [npcdata]uint32
    
    	// funcdata contains the offset past moduledata.gofunc which contains a
    	// pointer to that index's funcdata. e.g.,
    	// *(moduledata.gofunc +  _func.funcdata[_FUNCDATA_ArgsPointerMaps]) is
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 47.9K bytes
    - Viewed (0)
  9. src/runtime/stack.go

    	gcdataoff uint32 // offset to gcdata from moduledata.rodata
    }
    
    func (r *stackObjectRecord) useGCProg() bool {
    	return r._ptrdata < 0
    }
    
    func (r *stackObjectRecord) ptrdata() uintptr {
    	x := r._ptrdata
    	if x < 0 {
    		return uintptr(-x)
    	}
    	return uintptr(x)
    }
    
    // gcdata returns pointer map or GC prog of the type.
    func (r *stackObjectRecord) gcdata() *byte {
    	ptr := uintptr(unsafe.Pointer(r))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  10. src/cmd/link/internal/ld/symtab.go

    	}
    
    	groupSym := func(name string, t sym.SymKind) loader.Sym {
    		s := ldr.CreateSymForUpdate(name, 0)
    		s.SetType(t)
    		s.SetSize(0)
    		s.SetAlign(int32(ctxt.Arch.PtrSize))
    		s.SetLocal(true)
    		setCarrierSym(t, s.Sym())
    		return s.Sym()
    	}
    	var (
    		symgostring = groupSym("go:string.*", sym.SGOSTRING)
    		symgofunc   = groupSym("go:func.*", sym.SGOFUNC)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 13 16:29:40 UTC 2023
    - 29.2K bytes
    - Viewed (0)
Back to top