Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 35 for m_curg (0.16 sec)

  1. src/runtime/asm_ppc64x.s

    	// save that information (m->curg->sched) so we can restore it.
    	// We can restore m->curg->sched.sp easily, because calling
    	// runtime.cgocallbackg leaves SP unchanged upon return.
    	// To save m->curg->sched.pc, we push it onto the curg stack and
    	// open a frame the same size as cgocallback's g0 frame.
    	// Once we switch to the curg stack, the pushed PC will appear
    	// to be the return PC of cgocallback, so that the traceback
    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_386.s

    	// We can restore m->curg->sched.sp easily, because calling
    	// runtime.cgocallbackg leaves SP unchanged upon return.
    	// To save m->curg->sched.pc, we push it onto the curg stack and
    	// open a frame the same size as cgocallback's g0 frame.
    	// Once we switch to the curg stack, the pushed PC will appear
    	// to be the return PC of cgocallback, so that the traceback
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 15:45:13 UTC 2024
    - 43.1K bytes
    - Viewed (0)
  3. src/runtime/asm_arm64.s

    	// but *not* resuming what had been running, we need to
    	// save that information (m->curg->sched) so we can restore it.
    	// We can restore m->curg->sched.sp easily, because calling
    	// runtime.cgocallbackg leaves SP unchanged upon return.
    	// To save m->curg->sched.pc, we push it onto the curg stack and
    	// open a frame the same size as cgocallback's g0 frame.
    	// Once we switch to the curg stack, the pushed PC will appear
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 11 20:38:24 UTC 2024
    - 43.4K bytes
    - Viewed (0)
  4. src/runtime/race_amd64.s

    	CALL	runtime·racecallback(SB)
    	POPQ	R12
    	POPQ	R12
    	// All registers are smashed after Go code, reload.
    	get_tls(R12)
    	MOVQ	g(R12), R13
    	MOVQ	g_m(R13), R13
    	MOVQ	m_curg(R13), R14
    	MOVQ	R14, g(R12)	// g = m->curg
    ret:
    	POP_REGS_HOST_TO_ABI0()
    	RET
    
    noswitch:
    	// already on g0
    	PUSHQ	RARG1	// func arg
    	PUSHQ	RARG0	// func arg
    	CALL	runtime·racecallback(SB)
    	POPQ	R12
    	POPQ	R12
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  5. src/runtime/race_arm64.s

    	MOVD	R14, g
    
    	MOVD	R0, 8(RSP)	// func arg
    	MOVD	R1, 16(RSP)	// func arg
    	BL	runtime·racecallback(SB)
    
    	// All registers are smashed after Go code, reload.
    	MOVD	g_m(g), R13
    	MOVD	m_curg(R13), g	// g = m->curg
    ret:
    	// Restore callee-saved registers.
    	MOVD	0(RSP), LR
    	MOVD	(8*21)(RSP), R29
    	RESTORE_F8_TO_F15(8*13)
    	RESTORE_R19_TO_R28(8*3)
    	ADD	$176, RSP
    	JMP	(LR)
    
    noswitch:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  6. src/runtime/sys_darwin_amd64.s

    	TESTQ	AX, AX
    	JZ	sigtramp        // g.m == nil
    	MOVL	m_ncgo(AX), CX
    	TESTL	CX, CX
    	JZ	sigtramp        // g.m.ncgo == 0
    	MOVQ	m_curg(AX), CX
    	TESTQ	CX, CX
    	JZ	sigtramp        // g.m.curg == nil
    	MOVQ	g_syscallsp(CX), CX
    	TESTQ	CX, CX
    	JZ	sigtramp        // g.m.curg.syscallsp == 0
    	MOVQ	m_cgoCallers(AX), R8
    	TESTQ	R8, R8
    	JZ	sigtramp        // g.m.cgoCallers == nil
    	MOVL	m_cgoCallersUse(AX), CX
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 03 16:07:59 UTC 2023
    - 19.7K bytes
    - Viewed (0)
  7. src/runtime/signal_windows.go

    	print("PC=", hex(r.ip()), "\n")
    	if g0.m.incgo && gp == g0.m.g0 && g0.m.curg != nil {
    		if iscgo {
    			print("signal arrived during external code execution\n")
    		}
    		gp = g0.m.curg
    	}
    	print("\n")
    
    	g0.m.throwing = throwTypeRuntime
    	g0.m.caughtsig.set(gp)
    
    	level, _, docrash := gotraceback()
    	if level > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 17 20:32:29 UTC 2023
    - 14.5K bytes
    - Viewed (0)
  8. src/runtime/signal_unix.go

    		goroutineheader(gp)
    		tracebacktrap(c.sigpc(), c.sigsp(), c.siglr(), gp)
    		if crashing.Load() > 0 && gp != mp.curg && mp.curg != nil && readgstatus(mp.curg)&^_Gscan == _Grunning {
    			// tracebackothers on original m skipped this one; trace it now.
    			goroutineheader(mp.curg)
    			traceback(^uintptr(0), ^uintptr(0), 0, mp.curg)
    		} else if crashing.Load() == 0 {
    			tracebackothers(gp)
    			print("\n")
    		}
    		dumpregs(c)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 16:04:54 UTC 2024
    - 45K bytes
    - Viewed (0)
  9. src/runtime/preempt.go

    // the signal case.
    //
    //go:systemstack
    func suspendG(gp *g) suspendGState {
    	if mp := getg().m; mp.curg != nil && readgstatus(mp.curg) == _Grunning {
    		// Since we're on the system stack of this M, the user
    		// G is stuck at an unsafe point. If another goroutine
    		// were to try to preempt m.curg, it could deadlock.
    		throw("suspendG from non-preemptible goroutine")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  10. src/runtime/race.go

    func racefree(p unsafe.Pointer, sz uintptr) {
    	racecall(&__tsan_free, uintptr(p), sz, 0, 0)
    }
    
    //go:nosplit
    func racegostart(pc uintptr) uintptr {
    	gp := getg()
    	var spawng *g
    	if gp.m.curg != nil {
    		spawng = gp.m.curg
    	} else {
    		spawng = gp
    	}
    
    	var racectx uintptr
    	racecall(&__tsan_go_start, spawng.racectx, uintptr(unsafe.Pointer(&racectx)), pc, 0)
    	return racectx
    }
    
    //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