Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for updateLocked (0.4 sec)

  1. src/runtime/mgclimit.go

    		// our total assist time.
    		return
    	}
    	if l.transitioning {
    		throw("update during transition")
    	}
    	l.updateLocked(now)
    	l.unlock()
    }
    
    // updateLocked is the implementation of update. l.lock must be held.
    func (l *gcCPULimiterState) updateLocked(now int64) {
    	lastUpdate := l.lastUpdate.Load()
    	if now < lastUpdate {
    		// Defensively avoid overflow. This isn't even the latest update anyway.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 22:07:41 UTC 2024
    - 17.3K bytes
    - Viewed (0)
Back to top