Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewScavengeIndex (0.3 sec)

  1. src/runtime/mgcscavenge_test.go

    	setup := func(t *testing.T, force bool) (mark markFunc, find findFunc, nextGen func()) {
    		t.Helper()
    
    		// Pick some reasonable bounds. We don't need a huge range just to test.
    		si := NewScavengeIndex(BaseChunkIdx, BaseChunkIdx+64)
    
    		// Initialize all the chunks as dense and empty.
    		//
    		// Also, reset search addresses so that we can get page offsets.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 25.2K bytes
    - Viewed (0)
  2. src/runtime/export_test.go

    	if !parked {
    		panic("tried to clean up scavenger that is not parked")
    	}
    	close(s.stop)
    	s.Wake()
    	<-s.done
    }
    
    type ScavengeIndex struct {
    	i scavengeIndex
    }
    
    func NewScavengeIndex(min, max ChunkIdx) *ScavengeIndex {
    	s := new(ScavengeIndex)
    	// This is a bit lazy but we easily guarantee we'll be able
    	// to reference all the relevant chunks. The worst-case
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
Back to top