Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for cacheSpan (0.13 sec)

  1. src/runtime/mcentral.go

    // free slots for this sweepgen.
    func (c *mcentral) fullSwept(sweepgen uint32) *spanSet {
    	return &c.full[sweepgen/2%2]
    }
    
    // Allocate a span to use in an mcache.
    func (c *mcentral) cacheSpan() *mspan {
    	// Deduct credit for this span allocation and sweep if necessary.
    	spanBytes := uintptr(class_to_allocnpages[c.spanclass.sizeclass()]) * _PageSize
    	deductSweepCredit(spanBytes, 0)
    
    	traceDone := false
    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