Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 119 for Setg (0.08 sec)

  1. 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)
  2. src/cmd/compile/internal/ssa/_gen/AMD64Ops.go

    		x15        = buildReg("X15")
    		gpsp       = gp | buildReg("SP")
    		gpspsb     = gpsp | buildReg("SB")
    		gpspsbg    = gpspsb | g
    		callerSave = gp | fp | g // runtime.setg (and anything calling it) may clobber g
    	)
    	// Common slices of register masks
    	var (
    		gponly = []regMask{gp}
    		fponly = []regMask{fp}
    	)
    
    	// Common regInfo
    	var (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 04 16:40:24 UTC 2023
    - 98K bytes
    - Viewed (1)
  3. src/cmd/compile/internal/ssa/rewriteAMD64.go

    }
    func rewriteValueAMD64_OpAMD64SETG(v *Value) bool {
    	v_0 := v.Args[0]
    	// match: (SETG (InvertFlags x))
    	// result: (SETL x)
    	for {
    		if v_0.Op != OpAMD64InvertFlags {
    			break
    		}
    		x := v_0.Args[0]
    		v.reset(OpAMD64SETL)
    		v.AddArg(x)
    		return true
    	}
    	// match: (SETG (FlagEQ))
    	// result: (MOVLconst [0])
    	for {
    		if v_0.Op != OpAMD64FlagEQ {
    			break
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 19:38:41 UTC 2024
    - 712.7K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. src/runtime/proflabel.go

    //
    //go:linkname runtime_setProfLabel runtime/pprof.runtime_setProfLabel
    func runtime_setProfLabel(labels unsafe.Pointer) {
    	// Introduce race edge for read-back via profile.
    	// This would more properly use &getg().labels as the sync address,
    	// but we do the read in a signal handler and can't call the race runtime then.
    	//
    	// This uses racereleasemerge rather than just racerelease so
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  9. src/runtime/lock_futex.go

    }
    
    func notetsleep(n *note, ns int64) bool {
    	gp := getg()
    	if gp != gp.m.g0 && gp.m.preemptoff != "" {
    		throw("notetsleep not on g0")
    	}
    
    	return notetsleep_internal(n, ns)
    }
    
    // same as runtime·notetsleep, but called on user g (not g0)
    // calls only nosplit functions between entersyscallblock/exitsyscall.
    func notetsleepg(n *note, ns int64) bool {
    	gp := getg()
    	if gp == gp.m.g0 {
    		throw("notetsleepg on g0")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:34 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  10. src/runtime/lock_sema.go

    }
    
    func notetsleep(n *note, ns int64) bool {
    	gp := getg()
    	if gp != gp.m.g0 {
    		throw("notetsleep not on g0")
    	}
    	semacreate(gp.m)
    	return notetsleep_internal(n, ns, nil, 0)
    }
    
    // same as runtime·notetsleep, but called on user g (not g0)
    // calls only nosplit functions between entersyscallblock/exitsyscall.
    func notetsleepg(n *note, ns int64) bool {
    	gp := getg()
    	if gp == gp.m.g0 {
    		throw("notetsleepg on g0")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 6.8K bytes
    - Viewed (0)
Back to top