Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for atomicstatus (0.22 sec)

  1. src/runtime/coro.go

    // than regular goroutine switches, so this path is heavily
    // optimized to remove unnecessary work.
    // The fast path here is three CAS: the one at the top on gp.atomicstatus,
    // the one in the middle to choose the next g,
    // and the one at the bottom on gnext.atomicstatus.
    // It is important not to add more atomic operations or other
    // expensive operations to the fast path.
    func coroswitch_m(gp *g) {
    	c := gp.coroarg
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:09:18 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  2. src/runtime/export_debug_test.go

    	// TODO(49370): This code is riddled with write barriers, but called from
    	// a signal handler. Add the go:nowritebarrierrec annotation and restructure
    	// this to avoid write barriers.
    
    	switch h.gp.atomicstatus.Load() {
    	case _Grunning:
    		if getg().m != h.mp {
    			println("trap on wrong M", getg().m, h.mp)
    			return false
    		}
    		// Save the signal context
    		h.saveSigContext(ctxt)
    		// Set PC to debugCallV2.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 5.1K bytes
    - Viewed (0)
Back to top