Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for prepareForSweep (0.1 sec)

  1. 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)
Back to top