Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for chunkPageIndex (0.35 sec)

  1. src/runtime/mpagecache.go

    		c = pageCache{
    			base:  alignDown(addr, 64*pageSize),
    			cache: ^chunk.pages64(chunkPageIndex(addr)),
    			scav:  chunk.scavenged.block64(chunkPageIndex(addr)),
    		}
    	}
    
    	// Set the page bits as allocated and clear the scavenged bits, but
    	// be careful to only set and clear the relevant bits.
    	cpi := chunkPageIndex(c.base)
    	chunk.allocPages64(cpi, c.cache)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 19 14:30:00 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  2. src/runtime/mpagealloc.go

    		// where it is, so mark it directly.
    		i := chunkIndex(base)
    		pi := chunkPageIndex(base)
    		p.chunkOf(i).free1(pi)
    		p.scav.index.free(i, pi, 1)
    	} else {
    		// Slow path: we're clearing more bits so we may need to iterate.
    		sc, ec := chunkIndex(base), chunkIndex(limit)
    		si, ei := chunkPageIndex(base), chunkPageIndex(limit)
    
    		if sc == ec {
    			// The range doesn't cross any chunk boundaries.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 39.2K bytes
    - Viewed (0)
  3. src/runtime/export_test.go

    	ci, off := s.i.find(force)
    	return ChunkIdx(ci), off
    }
    
    func (s *ScavengeIndex) AllocRange(base, limit uintptr) {
    	sc, ec := chunkIndex(base), chunkIndex(limit-1)
    	si, ei := chunkPageIndex(base), chunkPageIndex(limit-1)
    
    	if sc == ec {
    		// The range doesn't cross any chunk boundaries.
    		s.i.alloc(sc, ei+1-si)
    	} else {
    		// The range crosses at least one chunk boundary.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  4. src/runtime/mgcscavenge.go

    	for i := start; i >= min; i-- {
    		// Skip over chunks.
    		if !s.chunks[i].load().shouldScavenge(gen, force) {
    			continue
    		}
    		// We're still scavenging this chunk.
    		if i == start {
    			return i, chunkPageIndex(searchAddr)
    		}
    		// Try to reduce searchAddr to newSearchAddr.
    		newSearchAddr := chunkBase(i) + pallocChunkBytes - pageSize
    		if marked {
    			// Attempt to be the first one to decrease the searchAddr
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:48:45 UTC 2024
    - 52.3K bytes
    - Viewed (0)
Back to top