Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for g_stackguard0 (0.13 sec)

  1. 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)
  2. src/cmd/internal/obj/riscv/obj.go

    		p = ctxt.EndUnsafePoint(p, newprog, -1)
    	}
    
    	// Jump back to here after morestack returns.
    	startPred := p
    
    	// MOV	g_stackguard(g), X6
    	p = obj.Appendp(p, newprog)
    	p.As = AMOV
    	p.From.Type = obj.TYPE_MEM
    	p.From.Reg = REGG
    	p.From.Offset = 2 * int64(ctxt.Arch.PtrSize) // G.stackguard0
    	if cursym.CFunc() {
    		p.From.Offset = 3 * int64(ctxt.Arch.PtrSize) // G.stackguard1
    	}
    	p.To.Type = obj.TYPE_REG
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 07 03:32:27 UTC 2024
    - 77K bytes
    - Viewed (0)
  3. src/runtime/mgc.go

    // performs a stack check.
    //
    // In rare cases this may not cause the stack to move, specifically if
    // there's a preemption between this call and the next.
    func gcTestMoveStackOnNextCall() {
    	gp := getg()
    	gp.stackguard0 = stackForceMove
    }
    
    // gcTestIsReachable performs a GC and returns a bit set where bit i
    // is set if ptrs[i] is reachable.
    func gcTestIsReachable(ptrs ...unsafe.Pointer) (mask uint64) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62K bytes
    - Viewed (0)
Back to top