Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for newPinnerBits (0.41 sec)

  1. src/runtime/pinner.go

    }
    
    func (s *mspan) pinnerBitSize() uintptr {
    	return divRoundUp(uintptr(s.nelems)*2, 8)
    }
    
    // newPinnerBits returns a pointer to 8 byte aligned bytes to be used for this
    // span's pinner bits. newPinnerBits is used to mark objects that are pinned.
    // They are copied when the span is swept.
    func (s *mspan) newPinnerBits() *pinnerBits {
    	return (*pinnerBits)(newMarkBits(uintptr(s.nelems) * 2))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 11K bytes
    - Viewed (0)
Back to top