- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 215 for linknames (0.61 sec)
-
src/cmd/compile/internal/noder/noder.go
} return filename } // noder transforms package syntax's AST into a Node tree. type noder struct { file *syntax.File linknames []linkname pragcgobuf [][]string err chan syntax.Error } // linkname records a //go:linkname directive. type linkname struct { pos syntax.Pos local string remote string } var unOps = [...]ir.Op{ syntax.Recv: ir.ORECV,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 11 20:40:57 UTC 2023 - 12.5K bytes - Viewed (0) -
src/runtime/syscall_windows.go
KeepAlive(filename) if handle != 0 { err = 0 } return } // golang.org/x/sys linknames syscall.loadlibrary // (in addition to standard package syscall). // Do not remove or change the type signature. // //go:linkname syscall_loadlibrary syscall.loadlibrary
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 20:12:46 UTC 2024 - 16.6K bytes - Viewed (0) -
src/cmd/internal/obj/objfile.go
} if s.IsPkgInit() { flag2 |= goobj.SymFlagPkgInit } if s.IsLinkname() || (w.ctxt.IsAsm && name != "") || name == "main.main" { // Assembly reference is treated the same as linkname, // but not for unnamed (aux) symbols. // The runtime linknames main.main. flag2 |= goobj.SymFlagLinkname } if s.ABIWrapper() { flag2 |= goobj.SymFlagABIWrapper } if strings.HasPrefix(name, "gofile..") {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 24K bytes - Viewed (0) -
src/cmd/link/internal/loader/loader.go
} return v } // A list of blocked linknames. Some linknames are allowed only // in specific packages. This maps symbol names to allowed packages. // If a name is not in this map, it is allowed iff the definition // has a linkname (push). // If a name is in this map, it is allowed only in listed packages, // even if it has a linknamed definition. var blockedLinknames = map[string][]string{ // coroutines
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 20:26:10 UTC 2024 - 81.5K bytes - Viewed (0) -
test/linkname.dir/linkname3.go
package main import _ "./linkname1" import "./linkname2" func main() { // ERROR "can inline main" str := "hello/world" bs := []byte(str) // ERROR "\(\[\]byte\)\(str\) escapes to heap" if y.ContainsSlash(bs) { // ERROR "inlining call to y.ContainsSlash" }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 08 20:59:45 UTC 2017 - 270 bytes - Viewed (0) -
test/linkname3.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:27:25 UTC 2024 - 720 bytes - Viewed (0) -
src/syscall/syscall_linux.go
"internal/itoa" runtimesyscall "internal/runtime/syscall" "runtime" "unsafe" ) // Pull in entersyscall/exitsyscall for Syscall/Syscall6. // // Note that this can't be a push linkname because the runtime already has a // nameless linkname to export to assembly here and in x/sys. Additionally, // entersyscall fetches the caller PC and SP and thus can't have a wrapper // inbetween.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 20:12:46 UTC 2024 - 35.7K bytes - Viewed (0) -
src/cmd/link/link_test.go
// Test that code containing blocked linknames does not build. testenv.MustHaveGoBuild(t) t.Parallel() tmpdir := t.TempDir() tests := []struct { src string ok bool }{ // use (instantiation) of public API is ok {"ok.go", true}, // push linkname is ok {"push.go", true}, // pull linkname of blocked symbol is not ok {"coro.go", false},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 20:26:02 UTC 2024 - 43.5K bytes - Viewed (0) -
test/linkname.dir/linkname2.go
package y import _ "unsafe" //go:linkname byteIndex test/linkname1.indexByte func byteIndex(xs []byte, b byte) int // ERROR "leaking param: xs" func ContainsSlash(data []byte) bool { // ERROR "leaking param: data" "can inline ContainsSlash" if byteIndex(data, '/') != -1 { return true } return false
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 24 17:50:47 UTC 2022 - 310 bytes - Viewed (0) -
test/linkname.dir/linkname1.go
nimelehin <******@****.***> 1634659174 +0300
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 14:25:03 UTC 2021 - 174 bytes - Viewed (0)