Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for incnwait (0.15 sec)

  1. src/runtime/mgcmark.go

    	// If this is the last worker and we ran out of work,
    	// signal a completion point.
    	incnwait := atomic.Xadd(&work.nwait, +1)
    	if incnwait > work.nproc {
    		println("runtime: work.nwait=", incnwait,
    			"work.nproc=", work.nproc)
    		throw("work.nwait > work.nproc")
    	}
    
    	if incnwait == work.nproc && !gcMarkWorkAvailable(nil) {
    		// This has reached a background completion point. Set
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 21:25:11 UTC 2024
    - 52.5K bytes
    - Viewed (0)
  2. src/runtime/mgc.go

    			atomic.Xaddint64(&pp.gcFractionalMarkTime, duration)
    		}
    
    		// Was this the last worker and did we run out
    		// of work?
    		incnwait := atomic.Xadd(&work.nwait, +1)
    		if incnwait > work.nproc {
    			println("runtime: p.gcMarkWorkerMode=", pp.gcMarkWorkerMode,
    				"work.nwait=", incnwait, "work.nproc=", work.nproc)
    			throw("work.nwait > work.nproc")
    		}
    
    		// We'll releasem after this point and thus this P may run
    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