Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for uncacheSpan (0.21 sec)

  1. src/runtime/mcentral.go

    	s.allocCache >>= s.freeindex % 64
    
    	return s
    }
    
    // Return span from an mcache.
    //
    // s must have a span class corresponding to this
    // mcentral and it must not be empty.
    func (c *mcentral) uncacheSpan(s *mspan) {
    	if s.allocCount == 0 {
    		throw("uncaching span but s.allocCount == 0")
    	}
    
    	sg := mheap_.sweepgen
    	stale := s.sweepgen == sg+1
    
    	// Fix up sweepgen.
    	if stale {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
Back to top