Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 40 for g_stackguard0 (0.25 sec)

  1. src/runtime/asm_riscv64.s

    	MOV	A1, 16(X2)	// argv
    
    	// create istack out of the given (operating system) stack.
    	// _cgo_init may update stackguard.
    	MOV	$runtime·g0(SB), g
    	MOV	$(-64*1024), T0
    	ADD	T0, X2, T1
    	MOV	T1, g_stackguard0(g)
    	MOV	T1, g_stackguard1(g)
    	MOV	T1, (g_stack+stack_lo)(g)
    	MOV	X2, (g_stack+stack_hi)(g)
    
    	// if there is a _cgo_init, call it using the gcc ABI.
    	MOV	_cgo_init(SB), T0
    	BEQ	T0, ZERO, nocgo
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 13:57:06 UTC 2023
    - 27K bytes
    - Viewed (0)
  2. src/runtime/asm_s390x.s

    	// create istack out of the given (operating system) stack.
    	// _cgo_init may update stackguard.
    	MOVD	$runtime·g0(SB), g
    	MOVD	R15, R11
    	SUB	$(64*1024), R11
    	MOVD	R11, g_stackguard0(g)
    	MOVD	R11, g_stackguard1(g)
    	MOVD	R11, (g_stack+stack_lo)(g)
    	MOVD	R15, (g_stack+stack_hi)(g)
    
    	// if there is a _cgo_init, call it using the gcc ABI.
    	MOVD	_cgo_init(SB), R11
    	CMPBEQ	R11, $0, nocgo
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 25 09:18:28 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  3. src/runtime/asm_arm.s

    	MOVW	g, m_g0(R8)
    	// save g->m = m0
    	MOVW	R8, g_m(g)
    
    	// create istack out of the OS stack
    	// (1MB of system stack is available on iOS and Android)
    	MOVW	$(-64*1024+104)(R13), R0
    	MOVW	R0, g_stackguard0(g)
    	MOVW	R0, g_stackguard1(g)
    	MOVW	R0, (g_stack+stack_lo)(g)
    	MOVW	R13, (g_stack+stack_hi)(g)
    
    	BL	runtime·emptyfunc(SB)	// fault if stack check is wrong
    
    #ifdef GOOS_openbsd
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 23 21:00:52 UTC 2024
    - 32.1K bytes
    - Viewed (0)
  4. src/runtime/asm_arm64.s

    	ADD	$32, RSP
    #endif
    
    	// create istack out of the given (operating system) stack.
    	// _cgo_init may update stackguard.
    	MOVD	$runtime·g0(SB), g
    	MOVD	RSP, R7
    	MOVD	$(-64*1024)(R7), R0
    	MOVD	R0, g_stackguard0(g)
    	MOVD	R0, g_stackguard1(g)
    	MOVD	R0, (g_stack+stack_lo)(g)
    	MOVD	R7, (g_stack+stack_hi)(g)
    
    	// if there is a _cgo_init, call it using the gcc ABI.
    	MOVD	_cgo_init(SB), R12
    	CBZ	R12, nocgo
    
    #ifdef GOOS_android
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 11 20:38:24 UTC 2024
    - 43.4K bytes
    - Viewed (0)
  5. src/runtime/asm_ppc64x.s

    	// create istack out of the given (operating system) stack.
    	// _cgo_init may update stackguard.
    	MOVD	$runtime·g0(SB), g
    	BL	runtime·save_g(SB)
    	MOVD	$(-64*1024), R31
    	ADD	R31, R1, R3
    	MOVD	R3, g_stackguard0(g)
    	MOVD	R3, g_stackguard1(g)
    	MOVD	R3, (g_stack+stack_lo)(g)
    	MOVD	R1, (g_stack+stack_hi)(g)
    
    	// If there is a _cgo_init, call it using the gcc ABI.
    	MOVD	_cgo_init(SB), R12
    	CMP	R12, $0
    	BEQ	nocgo
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:17:17 UTC 2024
    - 45.4K bytes
    - Viewed (0)
  6. src/runtime/asm_386.s

    	MOVL	BX, 124(SP)
    
    	// set default stack bounds.
    	// _cgo_init may update stackguard.
    	MOVL	$runtime·g0(SB), BP
    	LEAL	(-64*1024+104)(SP), BX
    	MOVL	BX, g_stackguard0(BP)
    	MOVL	BX, g_stackguard1(BP)
    	MOVL	BX, (g_stack+stack_lo)(BP)
    	MOVL	SP, (g_stack+stack_hi)(BP)
    
    	// find out information about the processor we're on
    	// first see if CPUID instruction is supported.
    	PUSHFL
    	PUSHFL
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 15:45:13 UTC 2024
    - 43.1K bytes
    - Viewed (0)
  7. src/runtime/asm_amd64.s

    	MOVQ	BX, 32(SP)
    
    	// create istack out of the given (operating system) stack.
    	// _cgo_init may update stackguard.
    	MOVQ	$runtime·g0(SB), DI
    	LEAQ	(-64*1024)(SP), BX
    	MOVQ	BX, g_stackguard0(DI)
    	MOVQ	BX, g_stackguard1(DI)
    	MOVQ	BX, (g_stack+stack_lo)(DI)
    	MOVQ	SP, (g_stack+stack_hi)(DI)
    
    	// find out information about the processor we're on
    	MOVL	$0, AX
    	CPUID
    	CMPL	AX, $0
    	JE	nocpuinfo
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 11 20:38:24 UTC 2024
    - 60.4K bytes
    - Viewed (0)
  8. src/runtime/debug.go

    	// Don't do anything on the g0 or gsignal stack.
    	gp := getg()
    	if gp == gp.m.g0 || gp == gp.m.gsignal {
    		return
    	}
    	// Force a preemption, unless the stack is already poisoned.
    	if gp.stackguard0 < stackPoisonMin {
    		gp.stackguard0 = stackPreempt
    	}
    }
    
    // mayMoreStackMove is a maymorestack hook that forces stack movement
    // at every possible point.
    //
    // See mayMoreStackPreempt.
    //
    //go:nosplit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 11 20:38:24 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  9. src/runtime/stack.go

    	thisg.m.morebuf.pc = 0
    	thisg.m.morebuf.lr = 0
    	thisg.m.morebuf.sp = 0
    	thisg.m.morebuf.g = 0
    
    	// NOTE: stackguard0 may change underfoot, if another thread
    	// is about to try to preempt gp. Read it just once and use that same
    	// value now and below.
    	stackguard0 := atomic.Loaduintptr(&gp.stackguard0)
    
    	// Be conservative about where we preempt.
    	// We are interested in preempting user Go code, not runtime code.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  10. src/runtime/preempt.go

    			if gp.preemptStop && gp.preempt && gp.stackguard0 == stackPreempt && asyncM == gp.m && asyncM.preemptGen.Load() == asyncGen {
    				break
    			}
    
    			// Temporarily block state transitions.
    			if !castogscanstatus(gp, _Grunning, _Gscanrunning) {
    				break
    			}
    
    			// Request synchronous preemption.
    			gp.preemptStop = true
    			gp.preempt = true
    			gp.stackguard0 = stackPreempt
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 15.1K bytes
    - Viewed (0)
Back to top