Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Free1 (0.03 sec)

  1. src/runtime/mpallocbits.go

    	(*pageBits)(b).setRange(i, n)
    }
    
    // allocAll allocates all the bits of b.
    func (b *pallocBits) allocAll() {
    	(*pageBits)(b).setAll()
    }
    
    // free1 frees a single page in the pallocBits at i.
    func (b *pallocBits) free1(i uint) {
    	(*pageBits)(b).clear(i)
    }
    
    // free frees the range [i, i+n) of pages in the pallocBits.
    func (b *pallocBits) free(i, n uint) {
    	(*pageBits)(b).clearRange(i, n)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 15:13:43 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  2. src/runtime/mpagealloc.go

    	if npages == 1 {
    		// Fast path: we're clearing a single bit, and we know exactly
    		// 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)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 39.2K bytes
    - Viewed (0)
Back to top