- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for setMaxIdleMarkWorkers (0.39 sec)
-
src/runtime/mgcpacer.go
if dedicatedMarkWorkersNeeded > 0 { c.setMaxIdleMarkWorkers(0) } else { // TODO(mknyszek): The fundamental reason why we need this is because // we can't count on the fractional mark worker to get scheduled. // Fix that by ensuring it gets scheduled according to its quota even // if the rest of the application is idle. c.setMaxIdleMarkWorkers(1) } } else {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 55.4K bytes - Viewed (0) -
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) -
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)