Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for setEmpty (0.17 sec)

  1. src/runtime/mgcscavenge.go

    	}
    	s.freeHWM = minOffAddr
    }
    
    // setEmpty marks that the scavenger has finished looking at ci
    // for now to prevent the scavenger from getting stuck looking
    // at the same chunk.
    //
    // setEmpty may only run concurrently with find.
    func (s *scavengeIndex) setEmpty(ci chunkIdx) {
    	val := s.chunks[ci].load()
    	val.setEmpty()
    	s.chunks[ci].store(val)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:48:45 UTC 2024
    - 52.3K bytes
    - Viewed (0)
  2. src/runtime/mgcscavenge_test.go

    		si.AllocRange(PageBase(BaseChunkIdx, 0), PageBase(BaseChunkIdx+64, 0))
    		si.NextGen()
    		si.FreeRange(PageBase(BaseChunkIdx, 0), PageBase(BaseChunkIdx+64, 0))
    		for ci := BaseChunkIdx; ci < BaseChunkIdx+64; ci++ {
    			si.SetEmpty(ci)
    		}
    		si.ResetSearchAddrs()
    
    		// Create and return test functions.
    		mark = func(base, limit uintptr) {
    			t.Helper()
    
    			si.AllocRange(base, limit)
    			si.FreeRange(base, limit)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 25.2K bytes
    - Viewed (0)
  3. src/runtime/export_test.go

    			a.StoreUnmark(addr, addr)
    		}
    		a.Clear()
    	}
    	s.i.freeHWM = minOffAddr
    }
    
    func (s *ScavengeIndex) NextGen() {
    	s.i.nextGen()
    }
    
    func (s *ScavengeIndex) SetEmpty(ci ChunkIdx) {
    	s.i.setEmpty(chunkIdx(ci))
    }
    
    func CheckPackScavChunkData(gen uint32, inUse, lastInUse uint16, flags uint8) bool {
    	sc0 := scavChunkData{
    		gen:            gen,
    		inUse:          inUse,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  4. src/runtime/mgcwork.go

    // the write barrier in turn invoked a gcWork method, it could
    // permanently corrupt the gcWork.
    
    func (w *gcWork) init() {
    	w.wbuf1 = getempty()
    	wbuf2 := trygetfull()
    	if wbuf2 == nil {
    		wbuf2 = getempty()
    	}
    	w.wbuf2 = wbuf2
    }
    
    // put enqueues a pointer for the garbage collector to trace.
    // obj must point to the beginning of a heap object or an oblet.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  5. src/runtime/mgcstack.go

    	}
    	buf := *head
    	if buf == nil {
    		// Initial setup.
    		buf = (*stackWorkBuf)(unsafe.Pointer(getempty()))
    		buf.nobj = 0
    		buf.next = nil
    		*head = buf
    	} else if buf.nobj == len(buf.obj) {
    		if s.freeBuf != nil {
    			buf = s.freeBuf
    			s.freeBuf = nil
    		} else {
    			buf = (*stackWorkBuf)(unsafe.Pointer(getempty()))
    		}
    		buf.nobj = 0
    		buf.next = *head
    		*head = buf
    	}
    	buf.obj[buf.nobj] = p
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 21 21:06:52 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  6. src/internal/trace/oldtrace.go

    	builtinToStringID []uint64
    }
    
    const (
    	// Block reasons
    	sForever = iota
    	sPreempted
    	sGosched
    	sSleep
    	sChanSend
    	sChanRecv
    	sNetwork
    	sSync
    	sSyncCond
    	sSelect
    	sEmpty
    	sMarkAssistWait
    
    	// STW kinds
    	sSTWUnknown
    	sSTWGCMarkTermination
    	sSTWGCSweepTermination
    	sSTWWriteHeapDump
    	sSTWGoroutineProfile
    	sSTWGoroutineProfileCleanup
    	sSTWAllGoroutinesStackTrace
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 17.2K bytes
    - Viewed (0)
Back to top