Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for GetSpans (0.14 sec)

  1. src/runtime/mheap.go

    	if !typ.manual() {
    		throw("manual span allocation called with non-manually-managed type")
    	}
    	return h.allocSpan(npages, typ, 0)
    }
    
    // setSpans modifies the span map so [spanOf(base), spanOf(base+npage*pageSize))
    // is s.
    func (h *mheap) setSpans(base, npage uintptr, s *mspan) {
    	p := base / pageSize
    	ai := arenaIndex(base)
    	ha := h.arenas[ai.l1()][ai.l2()]
    	for n := uintptr(0); n < npage; n++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 78K bytes
    - Viewed (0)
Back to top