Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for oneNewExtraM (0.24 sec)

  1. src/runtime/proc.go

    func newextram() {
    	c := extraMWaiters.Swap(0)
    	if c > 0 {
    		for i := uint32(0); i < c; i++ {
    			oneNewExtraM()
    		}
    	} else if extraMLength.Load() == 0 {
    		// Make sure there is at least one extra M.
    		oneNewExtraM()
    	}
    }
    
    // oneNewExtraM allocates an m and puts it on the extra list.
    func oneNewExtraM() {
    	// Create extra goroutine locked to extra m.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
Back to top