Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for addIdleMarkWorker (0.16 sec)

  1. src/runtime/mgcpacer_test.go

    		}
    	}
    	for i := 0; i < workers-1; i++ {
    		if !c.AddIdleMarkWorker() {
    			t.Fatalf("expected to be able to add idle mark workers after adding again: i=%d", i)
    		}
    	}
    	for i := 0; i < 10; i++ {
    		if !c.AddIdleMarkWorker() {
    			t.Fatalf("expected to be able to add idle mark workers interleaved: 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/mgcpacer.go

    	}
    	n, ok := parseByteCount(p)
    	if !ok {
    		print("GOMEMLIMIT=", p, "\n")
    		throw("malformed GOMEMLIMIT; see `go doc runtime/debug.SetMemoryLimit`")
    	}
    	return n
    }
    
    // addIdleMarkWorker attempts to add a new idle mark worker.
    //
    // If this returns true, the caller must become an idle mark worker unless
    // there's no background mark worker goroutines in the pool. This case is
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 55.4K bytes
    - Viewed (0)
  3. src/runtime/export_test.go

    	c.assistTime.Store(assistTime)
    	c.endCycle(elapsed, gomaxprocs, false)
    	c.resetLive(bytesMarked)
    	c.commit(false)
    }
    
    func (c *GCController) AddIdleMarkWorker() bool {
    	return c.addIdleMarkWorker()
    }
    
    func (c *GCController) NeedIdleMarkWorker() bool {
    	return c.needIdleMarkWorker()
    }
    
    func (c *GCController) RemoveIdleMarkWorker() {
    	c.removeIdleMarkWorker()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  4. src/runtime/proc.go

    	//
    	// If we're in the GC mark phase, can safely scan and blacken objects,
    	// and have work to do, run idle-time marking rather than give up the P.
    	if gcBlackenEnabled != 0 && gcMarkWorkAvailable(pp) && gcController.addIdleMarkWorker() {
    		node := (*gcBgMarkWorkerNode)(gcBgMarkWorkerPool.pop())
    		if node != nil {
    			pp.gcMarkWorkerMode = gcMarkWorkerIdleMode
    			gp := node.gp.ptr()
    
    			trace := traceAcquire()
    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