Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for pageMarks (0.13 sec)

  1. src/runtime/mwbbuf.go

    		if mbits.isMarked() {
    			continue
    		}
    		mbits.setMarked()
    
    		// Mark span.
    		arena, pageIdx, pageMask := pageIndexOf(span.base())
    		if arena.pageMarks[pageIdx]&pageMask == 0 {
    			atomic.Or8(&arena.pageMarks[pageIdx], pageMask)
    		}
    
    		if span.spanclass.noscan() {
    			gcw.bytesMarked += uint64(span.elemsize)
    			continue
    		}
    		ptrs[pos] = obj
    		pos++
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  2. src/runtime/mgcmark.go

    		if mbits.isMarked() {
    			return
    		}
    		mbits.setMarked()
    
    		// Mark span.
    		arena, pageIdx, pageMask := pageIndexOf(span.base())
    		if arena.pageMarks[pageIdx]&pageMask == 0 {
    			atomic.Or8(&arena.pageMarks[pageIdx], pageMask)
    		}
    
    		// If this is a noscan object, fast-track it to black
    		// instead of greying it.
    		if span.spanclass.noscan() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 21:25:11 UTC 2024
    - 52.5K bytes
    - Viewed (0)
  3. src/runtime/mheap.go

    	// but only the bit corresponding to the first page in each
    	// span is used.
    	//
    	// Reads and writes are atomic.
    	pageInUse [pagesPerArena / 8]uint8
    
    	// pageMarks is a bitmap that indicates which spans have any
    	// marked objects on them. Like pageInUse, only the bit
    	// corresponding to the first page in each span is used.
    	//
    	// Writes are done atomically during marking. Reads are
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 78K bytes
    - Viewed (0)
  4. src/runtime/mgc.go

    	// time here is pretty trivial.
    	lock(&mheap_.lock)
    	arenas := mheap_.allArenas
    	unlock(&mheap_.lock)
    	for _, ai := range arenas {
    		ha := mheap_.arenas[ai.l1()][ai.l2()]
    		clear(ha.pageMarks[:])
    	}
    
    	work.bytesMarked = 0
    	work.initialHeapLive = gcController.heapLive.Load()
    }
    
    // Hooks for other packages
    
    var poolcleanup func()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62K bytes
    - Viewed (0)
Back to top