Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for mSpanInUse (0.13 sec)

  1. src/runtime/traceallocfree.go

    		if s.state.get() == mSpanDead {
    			continue
    		}
    		// It's some kind of span, so trace that it exists.
    		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() {
    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/runtime/heapdump.go

    	dumpmemrange(unsafe.Pointer(firstmoduledata.bss), firstmoduledata.ebss-firstmoduledata.bss)
    	dumpfields(firstmoduledata.gcbssmask)
    
    	// mspan.types
    	for _, s := range mheap_.allspans {
    		if s.state.get() == mSpanInUse {
    			// Finalizers
    			for sp := s.specials; sp != nil; sp = sp.next {
    				if sp.kind != _KindSpecialFinalizer {
    					continue
    				}
    				spf := (*specialfinalizer)(unsafe.Pointer(sp))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  3. src/runtime/metrics.go

    				out.kind = metricKindUint64
    				out.scalar = in.sysStats.mSpanSys - in.sysStats.mSpanInUse
    			},
    		},
    		"/memory/classes/metadata/mspan/inuse:bytes": {
    			deps: makeStatDepSet(sysStatsDep),
    			compute: func(in *statAggregate, out *metricValue) {
    				out.kind = metricKindUint64
    				out.scalar = in.sysStats.mSpanInUse
    			},
    		},
    		"/memory/classes/metadata/other:bytes": {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 21:03:13 UTC 2024
    - 26K bytes
    - Viewed (0)
  4. src/runtime/mheap.go

    //
    // When a mspan is allocated, state == mSpanInUse or mSpanManual
    // and heapmap(i) == span for all s->start <= i < s->start+s->npages.
    
    // Every mspan is in one doubly-linked list, either in the mheap's
    // busy list or one of the mcentral's span lists.
    
    // An mspan representing actual memory has state mSpanInUse,
    // mSpanManual, or mSpanFree. Transitions between these states are
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 78K bytes
    - Viewed (0)
  5. src/runtime/mgcsweep.go

    	npages := ^uintptr(0)
    	var noMoreWork bool
    	for {
    		s := mheap_.nextSpanForSweep()
    		if s == nil {
    			noMoreWork = sweep.active.markDrained()
    			break
    		}
    		if state := s.state.get(); state != mSpanInUse {
    			// This can happen if direct sweeping already
    			// swept this span, but in that case the sweep
    			// generation should always be up-to-date.
    			if !(s.sweepgen == sl.sweepGen || s.sweepgen == sl.sweepGen+3) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:52:18 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  6. src/runtime/mstats.go

    	// structures is dedicated to these structures.
    	//
    	// These are primarily useful for debugging runtime memory
    	// overheads.
    
    	// MSpanInuse is bytes of allocated mspan structures.
    	MSpanInuse uint64
    
    	// MSpanSys is bytes of memory obtained from the OS for mspan
    	// structures.
    	MSpanSys uint64
    
    	// MCacheInuse is bytes of allocated mcache structures.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 21:03:13 UTC 2024
    - 34.2K bytes
    - Viewed (0)
  7. src/runtime/malloc_test.go

    		"HeapInuse": {nz, le(1e10)}, "HeapReleased": {le(1e10)}, "HeapObjects": {nz, le(1e10)},
    		"StackInuse": {nz, le(1e10)}, "StackSys": {nz, le(1e10)},
    		"MSpanInuse": {nz, le(1e10)}, "MSpanSys": {nz, le(1e10)},
    		"MCacheInuse": {nz, le(1e10)}, "MCacheSys": {nz, le(1e10)},
    		"BuckHashSys": {nz, le(1e10)}, "GCSys": {nz, le(1e10)}, "OtherSys": {nz, le(1e10)},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  8. src/runtime/mbitmap.go

    			if datap.bss <= dst && dst < datap.ebss {
    				bulkBarrierBitmap(dst, src, size, dst-datap.bss, datap.gcbssmask.bytedata)
    				return
    			}
    		}
    		return
    	} else if s.state.get() != mSpanInUse || dst < s.base() || s.limit <= dst {
    		// dst was heap memory at some point, but isn't now.
    		// It can't be a global. It must be either our stack,
    		// or in the case of direct channel sends, it could be
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 60K bytes
    - Viewed (0)
  9. src/runtime/arena.go

    	}
    
    	return x, span
    }
    
    // isUnusedUserArenaChunk indicates that the arena chunk has been set to fault
    // and doesn't contain any scannable memory anymore. However, it might still be
    // mSpanInUse as it sits on the quarantine list, since it needs to be swept.
    //
    // This is not safe to execute unless the caller has ownership of the mspan or
    // the world is stopped (preemption is prevented while the relevant state changes).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:44:56 UTC 2024
    - 37.9K bytes
    - Viewed (0)
  10. src/runtime/metrics_test.go

    		case "/memory/classes/metadata/mspan/free:bytes":
    			checkUint64(t, name, samples[i].Value.Uint64(), mstats.MSpanSys-mstats.MSpanInuse)
    		case "/memory/classes/metadata/mspan/inuse:bytes":
    			checkUint64(t, name, samples[i].Value.Uint64(), mstats.MSpanInuse)
    		case "/memory/classes/metadata/other:bytes":
    			checkUint64(t, name, samples[i].Value.Uint64(), mstats.GCSys)
    		case "/memory/classes/os-stacks:bytes":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 45K bytes
    - Viewed (0)
Back to top