Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for allocBitsForIndex (0.2 sec)

  1. src/runtime/traceallocfree.go

    		trace.SpanExists(s)
    
    		// Write out allocated objects if it's a heap span.
    		if s.state.get() != mSpanInUse {
    			continue
    		}
    
    		// Find all allocated objects.
    		abits := s.allocBitsForIndex(0)
    		for i := uintptr(0); i < uintptr(s.nelems); i++ {
    			if abits.index < uintptr(s.freeindex) || abits.isMarked() {
    				x := s.base() + i*s.elemsize
    				trace.HeapObjectExists(x, s.typePointersOfUnchecked(x).typ)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:32:51 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/test/inl_test.go

    			"puintptr.ptr",
    			"spanOf",
    			"spanOfUnchecked",
    			"typePointers.nextFast",
    			"(*gcWork).putFast",
    			"(*gcWork).tryGetFast",
    			"(*guintptr).set",
    			"(*markBits).advance",
    			"(*mspan).allocBitsForIndex",
    			"(*mspan).base",
    			"(*mspan).markBitsForBase",
    			"(*mspan).markBitsForIndex",
    			"(*mspan).writeUserArenaHeapBits",
    			"(*muintptr).set",
    			"(*puintptr).set",
    			"(*wbBuf).get1",
    			"(*wbBuf).get2",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  3. src/runtime/mgcsweep.go

    		spanHasNoSpecials(s)
    	}
    
    	if traceAllocFreeEnabled() || debug.clobberfree != 0 || raceenabled || msanenabled || asanenabled {
    		// Find all newly freed objects.
    		mbits := s.markBitsForBase()
    		abits := s.allocBitsForIndex(0)
    		for i := uintptr(0); i < uintptr(s.nelems); i++ {
    			if !mbits.isMarked() && (abits.index < uintptr(s.freeindex) || abits.isMarked()) {
    				x := s.base() + i*s.elemsize
    				if traceAllocFreeEnabled() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:52:18 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  4. src/runtime/mbitmap.go

    // We maintain one set of mark bits for allocation and one for
    // marking purposes.
    type markBits struct {
    	bytep *uint8
    	mask  uint8
    	index uintptr
    }
    
    //go:nosplit
    func (s *mspan) allocBitsForIndex(allocBitIndex uintptr) markBits {
    	bytep, mask := s.allocBits.bitp(allocBitIndex)
    	return markBits{bytep, mask, allocBitIndex}
    }
    
    // refillAllocCache takes 8 bytes s.allocBits starting at whichByte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 60K bytes
    - Viewed (0)
Back to top