Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for setMaxIdleMarkWorkers (0.48 sec)

  1. src/runtime/mgcpacer_test.go

    		goal = headroom
    	} else {
    		goal -= headroom
    	}
    	return goal
    }
    
    func TestIdleMarkWorkerCount(t *testing.T) {
    	const workers = 10
    	c := NewGCController(100, math.MaxInt64)
    	c.SetMaxIdleMarkWorkers(workers)
    	for i := 0; i < workers; i++ {
    		if !c.NeedIdleMarkWorker() {
    			t.Fatalf("expected to need idle mark workers: i=%d", i)
    		}
    		if !c.AddIdleMarkWorker() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 19 13:53:21 UTC 2023
    - 39.3K bytes
    - Viewed (0)
  2. src/runtime/export_test.go

    	return c.needIdleMarkWorker()
    }
    
    func (c *GCController) RemoveIdleMarkWorker() {
    	c.removeIdleMarkWorker()
    }
    
    func (c *GCController) SetMaxIdleMarkWorkers(max int32) {
    	c.setMaxIdleMarkWorkers(max)
    }
    
    var alwaysFalse bool
    var escapeSink any
    
    func Escape[T any](x T) T {
    	if alwaysFalse {
    		escapeSink = x
    	}
    	return x
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
Back to top