- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 838 for ncgo (0.03 sec)
-
src/runtime/tls_ppc64x.s
TEXT runtime·save_g(SB),NOSPLIT|NOFRAME,$0-0 #ifndef GOOS_aix #ifndef GOOS_openbsd MOVBZ runtime·iscgo(SB), R31 CMP R31, $0 BEQ nocgo #endif #endif MOVD runtime·tls_g(SB), R31 MOVD g, 0(R31) nocgo: RET // load_g loads the g register from pthread-provided // thread-local memory, for use after calling externally compiled // ppc64 code that overwrote those registers. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 02:48:11 UTC 2023 - 1.5K bytes - Viewed (0) -
src/runtime/signal_unix.go
} print("PC=", hex(c.sigpc()), " m=", mp.id, " sigcode=", c.sigcode()) if sig == _SIGSEGV || sig == _SIGBUS { print(" addr=", hex(c.fault())) } print("\n") if mp.incgo && gp == mp.g0 && mp.curg != nil { print("signal arrived during cgo execution\n") // Switch to curg so that we get a traceback of the Go code // leading up to the cgocall, which switched from curg to g0. gp = mp.curg }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 10 16:04:54 UTC 2024 - 45K bytes - Viewed (0) -
test/fixedbugs/issue51733.go
// Copyright 2022 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build cgo package main import ( "log" "runtime/cgo" "unsafe" ) type S struct{ _ cgo.Incomplete } func main() { p := (*S)(unsafe.Pointer(uintptr(0x8000))) var v any = p p2 := v.(*S) if p != p2 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 02 15:27:18 UTC 2022 - 619 bytes - Viewed (0) -
test/fixedbugs/issue42032.go
// run // Copyright 2020 The Go Authors. All rights reserved. Use of this // source code is governed by a BSD-style license that can be found in // the LICENSE file. //go:build cgo package main import "runtime/cgo" type NIH struct { _ cgo.Incomplete } type T struct { x *NIH p *int } var y NIH var z int func main() { a := []T{{&y, &z}} a = append(a, T{&y, &z}) if a[1].x == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 02 15:27:18 UTC 2022 - 432 bytes - Viewed (0) -
src/cmd/cgo/internal/testsanitizers/testdata/tsan7.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main // Setting an environment variable in a cgo program changes the C // environment. Test that this does not confuse the race detector. /* #cgo CFLAGS: -fsanitize=thread #cgo LDFLAGS: -fsanitize=thread */ import "C" import ( "fmt" "os" "sync" "time" ) func main() { var wg sync.WaitGroup
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 708 bytes - Viewed (0) -
src/runtime/defs_linux_arm64.go
// Created by cgo -cdefs and converted (by hand) to Go // ../cmd/cgo/cgo -cdefs defs_linux.go defs1_linux.go defs2_linux.go package runtime import "unsafe" const ( _EINTR = 0x4 _EAGAIN = 0xb _ENOMEM = 0xc _PROT_NONE = 0x0 _PROT_READ = 0x1 _PROT_WRITE = 0x2 _PROT_EXEC = 0x4 _MAP_ANON = 0x20 _MAP_PRIVATE = 0x2 _MAP_FIXED = 0x10 _MADV_DONTNEED = 0x4 _MADV_FREE = 0x8
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 19:05:10 UTC 2023 - 3.6K bytes - Viewed (0) -
src/cmd/go/testdata/script/cover_cgo_extra_file.txt
[short] skip [!cgo] skip [compiler:gccgo] skip # gccgo has no cover tool # Test coverage on cgo code. This test case includes an # extra empty non-cgo file in the package being checked. go test -short -cover cgocover4 stdout 'coverage:.*[1-9][0-9.]+%' ! stderr '[^0-9]0\.0%' -- go.mod -- module cgocover4 go 1.16 -- notcgo.go -- package p -- p.go -- package p /* void f(void) { } */ import "C"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 24 21:26:10 UTC 2022 - 560 bytes - Viewed (0) -
test/fixedbugs/issue46903.go
// run //go:build cgo // Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import "runtime/cgo" type A struct { B _ cgo.Incomplete } type B struct{ x byte } type I interface{ M() *B } func (p *B) M() *B { return p } var ( a A i I = &a ) func main() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 25 21:16:32 UTC 2023 - 473 bytes - Viewed (0) -
src/cmd/go/testdata/script/install_goroot_targets.txt
! stdout . go install builtin unsafe # Should succeed as no-ops. # With CGO_ENABLED=0, packages that would have # an install target with cgo on no longer do. env GODEBUG= env CGO_ENABLED=0 go list -f '{{.Target}}' runtime/cgo ! stdout . go list -export -f '{{.Export}}' runtime/cgo
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 21 22:43:41 UTC 2022 - 747 bytes - Viewed (0) -
src/runtime/tls_s390x.s
// // NOTE: setg_gcc<> assume this clobbers only R10 and R11. TEXT runtime·save_g(SB),NOSPLIT|NOFRAME,$0-0 MOVB runtime·iscgo(SB), R10 CMPBEQ R10, $0, nocgo MOVW AR0, R11 SLD $32, R11 MOVW AR1, R11 MOVD runtime·tls_g(SB), R10 MOVD g, 0(R10)(R11*1) nocgo: RET // load_g loads the g register from pthread-provided // thread-local memory, for use after calling externally compiled
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 07 18:56:54 UTC 2016 - 1.5K bytes - Viewed (0)