Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for cacheSpan (0.09 sec)

  1. src/runtime/mcache.go

    		// Clear the second allocCount just to be safe.
    		s.allocCountBeforeCache = 0
    	}
    
    	// Get a new cached span from the central lists.
    	s = mheap_.central[spc].mcentral.cacheSpan()
    	if s == nil {
    		throw("out of memory")
    	}
    
    	if s.allocCount == s.nelems {
    		throw("span has no free space")
    	}
    
    	// Indicate that this span is cached and prevent asynchronous
    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/mgcsweep.go

    //
    // * The object reclaimer finds and frees unmarked slots in spans. It
    //   can free a whole span if none of the objects are marked, but that
    //   isn't its goal. This can be driven either synchronously by
    //   mcentral.cacheSpan for mcentral spans, or asynchronously by
    //   sweepone, which looks at all the mcentral lists.
    //
    // * The span reclaimer looks for spans that contain no marked objects
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:52:18 UTC 2024
    - 32.9K bytes
    - Viewed (0)
Back to top