Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for allocCache (0.15 sec)

  1. src/runtime/mbitmap.go

    		// As each 1 in s.allocCache was encountered and used for allocation
    		// it was shifted away. At this point s.allocCache contains all 0s.
    		// Refill s.allocCache so that it corresponds
    		// to the bits at s.allocBits starting at s.freeindex.
    		whichByte := sfreeindex / 8
    		s.refillAllocCache(whichByte)
    	}
    	s.freeindex = sfreeindex
    	return result
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 60K bytes
    - Viewed (0)
  2. src/runtime/mheap.go

    	freeIndexForScan uint16
    
    	// Cache of the allocBits at freeindex. allocCache is shifted
    	// such that the lowest bit corresponds to the bit freeindex.
    	// allocCache holds the complement of allocBits, thus allowing
    	// ctz (count trailing zero) to use it directly.
    	// allocCache may contain bits beyond s.nelems; the caller must ignore
    	// these.
    	allocCache uint64
    
    	// allocBits and gcmarkBits hold pointers to a span's mark and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 78K bytes
    - Viewed (0)
  3. src/runtime/malloc.go

    func nextFreeFast(s *mspan) gclinkptr {
    	theBit := sys.TrailingZeros64(s.allocCache) // Is there a free object in the allocCache?
    	if theBit < 64 {
    		result := s.freeindex + uint16(theBit)
    		if result < s.nelems {
    			freeidx := result + 1
    			if freeidx%64 == 0 && freeidx != s.nelems {
    				return 0
    			}
    			s.allocCache >>= uint(theBit + 1)
    			s.freeindex = freeidx
    			s.allocCount++
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 59.6K bytes
    - Viewed (0)
Back to top