- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 170 for gofunc (0.23 sec)
-
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) -
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) -
src/runtime/signal_windows_test.go
t.Fatalf("Program exited with error: %v\n%s", err, &stderr) } } func TestIssue59213(t *testing.T) { if runtime.GOOS != "windows" { t.Skip("skipping windows only test") } if *flagQuick { t.Skip("-quick") } testenv.MustHaveGoBuild(t) testenv.MustHaveCGO(t) goEnv := func(arg string) string { cmd := testenv.Command(t, testenv.GoToolPath(t), "env", arg)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 05 08:26:52 UTC 2023 - 9K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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) -
src/cmd/nm/nm_test.go
} ` const testlib = ` package mylib {{if .}} // int cgodata = 5; // void cgofunc(void) {} import "C" var TestCgodata = C.cgodata func TestCgofunc() { C.cgofunc() } {{end}} var Testdata uint32 func Testfunc() {}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 20 23:32:34 UTC 2023 - 8.8K bytes - Viewed (0) -
test/ken/robfunc.go
// Test functions of many signatures. package main func assertequal(is, shouldbe int, msg string) { if is != shouldbe { print("assertion fail" + msg + "\n") panic(1) } } func f1() { } func f2(a int) { } func f3(a, b int) int { return a + b } func f4(a, b int, c float64) int { return (a+b)/2 + int(c) } func f5(a int) int { return 5 } func f6(a int) (r int) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 24 05:24:24 UTC 2012 - 1.4K bytes - Viewed (0)