Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for prepareForSweep (0.11 sec)

  1. src/runtime/mcache.go

    	// Update heapLive and heapScan.
    	gcController.update(dHeapLive, scanAlloc)
    }
    
    // prepareForSweep flushes c if the system has entered a new sweep phase
    // since c was populated. This must happen between the sweep phase
    // starting and the first allocation from c.
    func (c *mcache) prepareForSweep() {
    	// Alternatively, instead of making sure we do this on every P
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 10K bytes
    - Viewed (0)
  2. src/runtime/mgc.go

    	// of additional memory might be held onto.
    	//
    	// Also, flush the pinner cache, to avoid leaking that memory
    	// indefinitely.
    	forEachP(waitReasonFlushProcCaches, func(pp *p) {
    		pp.mcache.prepareForSweep()
    		if pp.status == _Pidle {
    			systemstack(func() {
    				lock(&mheap_.lock)
    				pp.pcache.flush(&mheap_.pages)
    				unlock(&mheap_.lock)
    			})
    		}
    		pp.pinnerCache = nil
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62K bytes
    - Viewed (0)
  3. src/runtime/proc.go

    	}
    
    	gp := getg()
    	if gp.m.p != 0 && gp.m.p.ptr().id < nprocs {
    		// continue to use the current P
    		gp.m.p.ptr().status = _Prunning
    		gp.m.p.ptr().mcache.prepareForSweep()
    	} else {
    		// release the current P and acquire allp[0].
    		//
    		// We must do this before destroying our current P
    		// because p.destroy itself has write barriers, so we
    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