Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 74 for systemstack (0.36 sec)

  1. src/runtime/asm_s390x.s

    	MOVD	(g_sched+gobuf_sp)(g), R15	// sp = m->g0->sched.sp
    	SUB	$16, R15
    	MOVD	R3, 8(R15)
    	MOVD	$0, 0(R15)
    	BL	(R4)
    	BR	runtime·badmcall2(SB)
    
    // systemstack_switch is a dummy routine that systemstack leaves at the bottom
    // of the G stack.  We need to distinguish the routine that
    // lives at the bottom of the G stack from the one that lives
    // at the top of the system stack because the one at the top of
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 25 09:18:28 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  2. src/runtime/panic.go

    		}
    
    		docrash = dopanic_m(gp, pc, sp)
    	})
    
    	if docrash {
    		// By crashing outside the above systemstack call, debuggers
    		// will not be confused when generating a backtrace.
    		// Function crash is marked nosplit to avoid stack growth.
    		crash()
    	}
    
    	systemstack(func() {
    		exit(2)
    	})
    
    	*(*int)(nil) = 0 // not reached
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 43.8K bytes
    - Viewed (0)
  3. src/runtime/mprof.go

    	// the profiler locks. This reduces potential contention and chances of
    	// deadlocks. Since the object must be alive during the call to
    	// mProf_Malloc, it's fine to do this non-atomically.
    	systemstack(func() {
    		setprofilebucket(p, b)
    	})
    }
    
    // Called when freeing a profiled block.
    func mProf_Free(b *bucket, size uintptr) {
    	index := (mProfCycle.read() + 1) % uint32(len(memRecord{}.future))
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  4. src/runtime/signal_windows.go

    		fn = lastcontinuehandler
    	default:
    		throw("unknown sigtramp callback")
    	}
    
    	// Check if we are running on g0 stack, and if we are,
    	// call fn directly instead of creating the closure.
    	// for the systemstack argument.
    	//
    	// A closure can't be marked as nosplit, so it might
    	// call morestack if we are at the g0 stack limit.
    	// If that happens, the runtime will call abort
    	// and end up in sigtrampgo again.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 17 20:32:29 UTC 2023
    - 14.5K bytes
    - Viewed (0)
  5. src/runtime/os_openbsd.go

    //go:nosplit
    func semawakeup(mp *m) {
    	atomic.Xadd(&mp.waitsemacount, 1)
    	ret := thrwakeup(uintptr(unsafe.Pointer(&mp.waitsemacount)), 1)
    	if ret != 0 && ret != _ESRCH {
    		// semawakeup can be called on signal stack.
    		systemstack(func() {
    			print("thrwakeup addr=", &mp.waitsemacount, " sem=", mp.waitsemacount, " ret=", ret, "\n")
    		})
    	}
    }
    
    func osinit() {
    	ncpu = getncpu()
    	physPageSize = getPageSize()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  6. src/runtime/asm_loong64.s

    	MOVV	(g_sched+gobuf_sp)(g), R3	// sp = m->g0->sched.sp
    	ADDV	$-16, R3
    	MOVV	R4, 8(R3)
    	MOVV	R0, 0(R3)
    	JAL	(R20)
    	JMP	runtime·badmcall2(SB)
    
    // systemstack_switch is a dummy routine that systemstack leaves at the bottom
    // of the G stack. We need to distinguish the routine that
    // lives at the bottom of the G stack from the one that lives
    // at the top of the system stack because the one at the top of
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 15:04:25 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  7. src/runtime/asm_mipsx.s

    	ADDU	$-8, R29	// make room for 1 arg and fake LR
    	MOVW	R1, 4(R29)
    	MOVW	R0, 0(R29)
    	JAL	(R4)
    	JMP	runtime·badmcall2(SB)
    
    // systemstack_switch is a dummy routine that systemstack leaves at the bottom
    // of the G stack.  We need to distinguish the routine that
    // lives at the bottom of the G stack from the one that lives
    // at the top of the system stack because the one at the top of
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 11:46:29 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  8. src/runtime/mwbbuf.go

    		// and this way we can allow write barriers in the
    		// panic path.
    		getg().m.p.ptr().wbBuf.discard()
    		return
    	}
    
    	// Switch to the system stack so we don't have to worry about
    	// safe points.
    	systemstack(func() {
    		wbBufFlush1(getg().m.p.ptr())
    	})
    }
    
    // wbBufFlush1 flushes p's write barrier buffer to the GC work queue.
    //
    // This must not have write barriers because it is part of the write
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  9. src/runtime/asm_arm.s

    	MOVW	(g_sched+gobuf_sp)(g), R13
    	SUB	$8, R13
    	MOVW	R1, 4(R13)
    	MOVW	R0, R7
    	MOVW	0(R0), R0
    	BL	(R0)
    	B	runtime·badmcall2(SB)
    	RET
    
    // systemstack_switch is a dummy routine that systemstack leaves at the bottom
    // of the G stack. We need to distinguish the routine that
    // lives at the bottom of the G stack from the one that lives
    // at the top of the system stack because the one at the top of
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 23 21:00:52 UTC 2024
    - 32.1K bytes
    - Viewed (0)
  10. src/runtime/coro.go

    // newcoro creates a new coro containing a
    // goroutine blocked waiting to run f
    // and returns that coro.
    func newcoro(f func(*coro)) *coro {
    	c := new(coro)
    	c.f = f
    	pc := getcallerpc()
    	gp := getg()
    	systemstack(func() {
    		mp := gp.m
    		start := corostart
    		startfv := *(**funcval)(unsafe.Pointer(&start))
    		gp = newproc1(startfv, gp, pc, true, waitReasonCoroutine)
    
    		// Scribble down locked thread state if needed and/or donate
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:09:18 UTC 2024
    - 7.4K bytes
    - Viewed (0)
Back to top