Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 54 for Setg (0.12 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. src/runtime/os2_aix.go

    //go:nosplit
    func exit(code int32) {
    	gp := getg()
    
    	// Check the validity of g because without a g during
    	// newosproc0.
    	if gp != nil {
    		syscall1(&libc_exit, uintptr(code))
    		return
    	}
    	exit1(code)
    }
    
    func write2(fd, p uintptr, n int32) int32
    
    //go:nosplit
    func write1(fd uintptr, p unsafe.Pointer, n int32) int32 {
    	gp := getg()
    
    	// Check the validity of g because without a g during
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 20.9K bytes
    - Viewed (0)
  6. src/runtime/lockrank_on.go

    			throw("lockRank release without matching lockRank acquire")
    		}
    	})
    
    	releasem(getg().m)
    }
    
    // nosplit because it may be called from nosplit contexts.
    //
    //go:nosplit
    func lockWithRankMayAcquire(l *mutex, rank lockRank) {
    	gp := getg()
    	if gp.m.locksHeldLen == 0 {
    		// No possibility of lock ordering problem if no other locks held
    		return
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 14:29:04 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  7. src/runtime/os_windows.go

    	if ns < 0 {
    		result = stdcall2(_WaitForSingleObject, getg().m.waitsema, uintptr(_INFINITE))
    	} else {
    		start := nanotime()
    		elapsed := int64(0)
    		for {
    			ms := int64(timediv(ns-elapsed, 1000000, nil))
    			if ms == 0 {
    				ms = 1
    			}
    			result = stdcall4(_WaitForMultipleObjects, 2,
    				uintptr(unsafe.Pointer(&[2]uintptr{getg().m.waitsema, getg().m.resumesema})),
    				0, uintptr(ms))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:55:25 UTC 2024
    - 41.5K bytes
    - Viewed (0)
  8. src/runtime/signal_windows.go

    	callbackLastVCH
    )
    
    // sigFetchGSafe is like getg() but without panicking
    // when TLS is not set.
    // Only implemented on windows/386, which is the only
    // arch that loads TLS when calling getg(). Others
    // use a dedicated register.
    func sigFetchGSafe() *g
    
    func sigFetchG() *g {
    	if GOARCH == "386" {
    		return sigFetchGSafe()
    	}
    	return getg()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 17 20:32:29 UTC 2023
    - 14.5K bytes
    - Viewed (0)
  9. src/runtime/export_test.go

    	}
    	return
    }
    
    func GetNextArenaHint() uintptr {
    	return mheap_.arenaHints.addr
    }
    
    type G = g
    
    type Sudog = sudog
    
    func Getg() *G {
    	return getg()
    }
    
    func Goid() uint64 {
    	return getg().goid
    }
    
    func GIsWaitingOnMutex(gp *G) bool {
    	return readgstatus(gp) == _Gwaiting && gp.waitreason.isMutexWait()
    }
    
    var CasGStatusAlwaysTrack = &casgstatusAlwaysTrack
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  10. src/runtime/os_plan9.go

    	var buf [_ERRMAX]byte
    	if !atomic.Cas(&exiting, 0, 1) {
    		return
    	}
    	getg().m.locks++
    	n := copy(buf[:], goexits)
    	n = copy(buf[n:], gostringnocopy(status))
    	pid := getpid()
    	for mp := (*m)(atomic.Loadp(unsafe.Pointer(&allm))); mp != nil; mp = mp.alllink {
    		if mp.procid != 0 && mp.procid != pid {
    			postnote(mp.procid, buf[:])
    		}
    	}
    	getg().m.locks--
    }
    
    var procdir = []byte("/proc/")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 10.3K bytes
    - Viewed (0)
Back to top