- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 838 for ncgo (0.23 sec)
-
src/runtime/cgocall.go
// Do the accounting that cgocall will not have a chance to do // during an unwind. // // In the case where a Go call originates from C, ncgo is 0 // and there is no matching cgocall to end. if mp.ncgo > 0 { mp.incgo = false mp.ncgo-- osPreemptExtExit(mp) } // Undo the call to lockOSThread in cgocallbackg, only on the // panicking path. In normal return case cgocallbackg will call
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:16:47 UTC 2024 - 24.2K bytes - Viewed (0) -
src/runtime/sys_freebsd_amd64.s
JZ sigtramp // Figure out if we are currently in a cgo call. // If not, just do usual sigtramp. get_tls(CX) MOVQ g(CX),AX TESTQ AX, AX JZ sigtrampnog // g == nil MOVQ g_m(AX), AX TESTQ AX, AX JZ sigtramp // g.m == nil MOVL m_ncgo(AX), CX TESTL CX, CX JZ sigtramp // g.m.ncgo == 0 MOVQ m_curg(AX), CX TESTQ CX, CX JZ sigtramp // g.m.curg == nil MOVQ g_syscallsp(CX), CX
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 06 18:49:01 UTC 2023 - 12.7K bytes - Viewed (0) -
src/runtime/sys_linux_amd64.s
JZ sigtramp // Figure out if we are currently in a cgo call. // If not, just do usual sigtramp. get_tls(CX) MOVQ g(CX),AX TESTQ AX, AX JZ sigtrampnog // g == nil MOVQ g_m(AX), AX TESTQ AX, AX JZ sigtramp // g.m == nil MOVL m_ncgo(AX), CX TESTL CX, CX JZ sigtramp // g.m.ncgo == 0 MOVQ m_curg(AX), CX TESTQ CX, CX JZ sigtramp // g.m.curg == nil MOVQ g_syscallsp(CX), CX
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 24 18:53:44 UTC 2023 - 15.7K bytes - Viewed (0) -
src/runtime/sys_linux_ppc64x.s
BEQ sigtramp // If no traceback support function, which means that // runtime/cgo was not linked in, do usual sigtramp. MOVD _cgo_callers(SB), R6 CMP $0, R6 BEQ sigtramp // Inspect the g in TLS without clobbering R30/R31 via runtime.load_g. MOVD runtime·tls_g(SB), R9 MOVD 0(R9), R9 // Figure out if we are currently in a cgo call. // If not, just do usual sigtramp. // compared to ARM64 and others.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 18:17:17 UTC 2024 - 18.1K bytes - Viewed (0) -
src/runtime/sys_linux_arm64.s
MOVD runtime·cgoTraceback(SB), R6 CBZ R6, sigtramp // If no traceback support function, which means that // runtime/cgo was not linked in, do usual sigtramp. MOVD _cgo_callers(SB), R7 CBZ R7, sigtramp // Figure out if we are currently in a cgo call. // If not, just do usual sigtramp. // first save R0, because runtime·load_g will clobber it. MOVD R0, R8 // Set up g register.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 24 18:53:44 UTC 2023 - 16.7K bytes - Viewed (0) -
src/runtime/sys_darwin_amd64.s
JZ sigtramp // Figure out if we are currently in a cgo call. // If not, just do usual sigtramp. get_tls(CX) MOVQ g(CX),AX TESTQ AX, AX JZ sigtrampnog // g == nil MOVQ g_m(AX), AX TESTQ AX, AX JZ sigtramp // g.m == nil MOVL m_ncgo(AX), CX TESTL CX, CX JZ sigtramp // g.m.ncgo == 0 MOVQ m_curg(AX), CX TESTQ CX, CX JZ sigtramp // g.m.curg == nil MOVQ g_syscallsp(CX), CX
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 03 16:07:59 UTC 2023 - 19.7K bytes - Viewed (0) -
src/cmd/cgo/internal/testnocgo/nocgo.go
// Test that -static works when not using cgo. This test is in // misc/cgo to take advantage of the testing framework support for // when -static is expected to work. package nocgo func NoCgo() int { c := make(chan int) // The test is run with external linking, which means that // goroutines will be created via the runtime/cgo package. // Make sure that works. go func() { c <- 42 }()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 574 bytes - Viewed (0) -
src/runtime/runtime2.go
needextram bool traceback uint8 ncgocall uint64 // number of cgo calls in total ncgo int32 // number of cgo calls currently in progress cgoCallersUse atomic.Uint32 // if non-zero, cgoCallers in use temporarily cgoCallers *cgoCallers // cgo traceback if crashing in cgo call park note alllink *m // on allm schedlink muintptr lockedg guintptr
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/traceback.go
// Trapping instruction or we're at the function entry point. return u.frame.pc } // cgoCallers populates pcBuf with the cgo callers of the current frame using // the registered cgo unwinder. It returns the number of PCs written to pcBuf. // If the current frame is not a cgo frame or if there's no registered cgo // unwinder, it returns 0. func (u *unwinder) cgoCallers(pcBuf []uintptr) int {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 55.1K bytes - Viewed (0) -
src/runtime/cgo/cgo.go
/* Package cgo contains runtime support for code generated by the cgo tool. See the documentation for the cgo command for details on using cgo. */ package cgo /* #cgo darwin,!arm64 LDFLAGS: -lpthread #cgo darwin,arm64 LDFLAGS: -framework CoreFoundation #cgo dragonfly LDFLAGS: -lpthread #cgo freebsd LDFLAGS: -lpthread #cgo android LDFLAGS: -llog #cgo !android,linux LDFLAGS: -lpthread
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 10 14:29:46 UTC 2023 - 1.1K bytes - Viewed (0)