Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 46 for Setg (0.08 sec)

  1. src/runtime/asm_arm.s

    	MOVW	(R6), R6
    	CMP	$0, R6
    	B.NE	done
    
    dropm:
    	MOVW	$runtime·dropm(SB), R0
    	BL	(R0)
    
    done:
    	// Done!
    	RET
    
    // void setg(G*); set g. for use by needm.
    TEXT runtime·setg(SB),NOSPLIT|NOFRAME,$0-4
    	MOVW	gg+0(FP), R0
    	B	setg<>(SB)
    
    TEXT setg<>(SB),NOSPLIT|NOFRAME,$0-0
    	MOVW	R0, g
    
    	// Save g to thread-local storage.
    #ifdef GOOS_windows
    	B	runtime·save_g(SB)
    #else
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 23 21:00:52 UTC 2024
    - 32.1K bytes
    - Viewed (0)
  2. 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)
  3. src/runtime/asm_s390x.s

    	CMPBEQ	R11, $0, nocgo
    	MOVW	AR0, R4			// (AR0 << 32 | AR1) is the TLS base pointer; MOVD is translated to EAR
    	SLD	$32, R4, R4
    	MOVW	AR1, R4			// arg 2: TLS base pointer
    	MOVD	$setg_gcc<>(SB), R3 	// arg 1: setg
    	MOVD	g, R2			// arg 0: G
    	// C functions expect 160 bytes of space on caller stack frame
    	// and an 8-byte aligned stack pointer
    	MOVD	R15, R9			// save current stack (R9 is preserved in the Linux ABI)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 25 09:18:28 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. src/runtime/asm_386.s

    	CMPL	DX, $0
    	JEQ	dropm
    	CMPL	(DX), $0
    	JNE	droppedm
    
    dropm:
    	MOVL	$runtime·dropm(SB), AX
    	CALL	AX
    droppedm:
    
    	// Done!
    	RET
    
    // void setg(G*); set g. for use by needm.
    TEXT runtime·setg(SB), NOSPLIT, $0-4
    	MOVL	gg+0(FP), BX
    #ifdef GOOS_windows
    	MOVL	runtime·tls_g(SB), CX
    	CMPL	BX, $0
    	JNE	settls
    	MOVL	$0, 0(CX)(FS)
    	RET
    settls:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 15:45:13 UTC 2024
    - 43.1K bytes
    - Viewed (0)
  10. src/runtime/race.go

    //go:nosplit
    func racerelease(addr unsafe.Pointer) {
    	racereleaseg(getg(), addr)
    }
    
    //go:nosplit
    func racereleaseg(gp *g, addr unsafe.Pointer) {
    	if getg().raceignore != 0 || !isvalidaddr(addr) {
    		return
    	}
    	racecall(&__tsan_release, gp.racectx, uintptr(addr), 0, 0)
    }
    
    //go:nosplit
    func racereleaseacquire(addr unsafe.Pointer) {
    	racereleaseacquireg(getg(), addr)
    }
    
    //go:nosplit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 20.4K bytes
    - Viewed (0)
Back to top