- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 63 for Setg (0.09 sec)
-
src/runtime/signal_unix.go
// it may hit stack split that is not expected here. if gp != nil { setg(nil) } badsignal(uintptr(sig), c) // Restore g if gp != nil { setg(gp) } return } setg(gp.m.gsignal) // If some non-Go code called sigaltstack, adjust. var gsignalStack gsignalStack
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 10 16:04:54 UTC 2024 - 45K bytes - Viewed (0) -
src/runtime/asm_loong64.s
// if there is a _cgo_init, call it using the gcc ABI. MOVV _cgo_init(SB), R25 BEQ R25, nocgo MOVV R0, R7 // arg 3: not used MOVV R0, R6 // arg 2: not used MOVV $setg_gcc<>(SB), R5 // arg 1: setg MOVV g, R4 // arg 0: G JAL (R25) nocgo: // update stackguard after _cgo_init MOVV (g_stack+stack_lo)(g), R19 ADDV $const_stackGuard, R19 MOVV R19, g_stackguard0(g) MOVV R19, g_stackguard1(g)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 15:04:25 UTC 2024 - 26.5K bytes - Viewed (0) -
src/runtime/asm_mipsx.s
// if there is a _cgo_init, call it using the gcc ABI. MOVW _cgo_init(SB), R25 BEQ R25, nocgo ADDU $-16, R29 MOVW R0, R7 // arg 3: not used MOVW R0, R6 // arg 2: not used MOVW $setg_gcc<>(SB), R5 // arg 1: setg MOVW g, R4 // arg 0: G JAL (R25) ADDU $16, R29 nocgo: // update stackguard after _cgo_init MOVW (g_stack+stack_lo)(g), R1 ADD $const_stackGuard, R1 MOVW R1, g_stackguard0(g)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 06 11:46:29 UTC 2024 - 26.3K bytes - Viewed (0) -
src/runtime/stubs.go
//go:linkname add //go:nosplit func add(p unsafe.Pointer, x uintptr) unsafe.Pointer { return unsafe.Pointer(uintptr(p) + x) } // getg returns the pointer to the current g. // The compiler rewrites calls to this function into instructions // that fetch the g directly (from TLS or from the dedicated register). func getg() *g // mcall switches from the g to the g0 stack and invokes fn(g), // where g is the goroutine that made the call.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 20.2K bytes - Viewed (0) -
src/runtime/proc.go
func dropm() { // Clear m and g, and return m to the extra list. // After the call to setg we can only call nosplit functions // with no pointer manipulation. mp := getg().m // Emit a trace event for this syscall -> dead transition. // // N.B. the tracer can run on a bare M just fine, we just have // to make sure to do this before setg(nil) and unminit. var trace traceLocker if !mp.isExtraInSig {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 207.5K bytes - Viewed (0) -
src/runtime/asm_ppc64x.s
MOVD 8(R12), R2 MOVD (R12), R12 #endif MOVD R12, CTR // r12 = "global function entry point" MOVD R13, R5 // arg 2: TLS base pointer MOVD $setg_gcc<>(SB), R4 // arg 1: setg MOVD g, R3 // arg 0: G // C functions expect 32 (48 for AIX) bytes of space on caller // stack frame and a 16-byte aligned R1 MOVD R1, R14 // save current stack SUB $cgoCalleeStackSize, R1 // reserve the callee area
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 18:17:17 UTC 2024 - 45.4K bytes - Viewed (0) -
src/runtime/asm_arm64.s
MOVD R0, R3 // arg 3: TLS base pointer MOVD $runtime·tls_g(SB), R2 // arg 2: &tls_g #else MOVD $0, R2 // arg 2: not used when using platform's TLS #endif MOVD $setg_gcc<>(SB), R1 // arg 1: setg MOVD g, R0 // arg 0: G SUB $16, RSP // reserve 16 bytes for sp-8 where fp may be saved. BL (R12) ADD $16, RSP nocgo: BL runtime·save_g(SB) // update stackguard after _cgo_init
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 11 20:38:24 UTC 2024 - 43.4K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/_gen/ARM64Ops.go
gpspsbg = gpspg | buildReg("SB") fp = buildReg("F0 F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12 F13 F14 F15 F16 F17 F18 F19 F20 F21 F22 F23 F24 F25 F26 F27 F28 F29 F30 F31") callerSave = gp | fp | buildReg("g") // runtime.setg (and anything calling it) may clobber g r0 = buildReg("R0") r1 = buildReg("R1") r2 = buildReg("R2") r3 = buildReg("R3") ) // Common regInfo var (
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 15:49:20 UTC 2024 - 58.8K bytes - Viewed (0) -
src/runtime/asm_amd64.s
// thread that comes into Go tries to reuse that space // but uses the same M. XORQ DI, DI CALL runtime·settls(SB) #endif done: // Done! RET // func setg(gg *g) // set g. for use by needm. TEXT runtime·setg(SB), NOSPLIT, $0-8 MOVQ gg+0(FP), BX get_tls(CX) MOVQ BX, g(CX) RET // void setg_gcc(G*); set g called from gcc.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 11 20:38:24 UTC 2024 - 60.4K bytes - Viewed (0) -
src/runtime/debugcall.go
// explaining why. // //go:nosplit func debugCallCheck(pc uintptr) string { // No user calls from the system stack. if getg() != getg().m.curg { return debugCallSystemStack } if sp := getcallersp(); !(getg().stack.lo < sp && sp <= getg().stack.hi) { // Fast syscalls (nanotime) and racecall switch to the // g0 stack without switching g. We can't safely make
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 05 20:50:21 UTC 2024 - 7.1K bytes - Viewed (0)