Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for mSpanInUse (0.17 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. src/runtime/export_test.go

    func CountPagesInUse() (pagesInUse, counted uintptr) {
    	stw := stopTheWorld(stwForTestCountPagesInUse)
    
    	pagesInUse = mheap_.pagesInUse.Load()
    
    	for _, s := range mheap_.allspans {
    		if s.state.get() == mSpanInUse {
    			counted += s.npages
    		}
    	}
    
    	startTheWorld(stw)
    
    	return
    }
    
    func Fastrand() uint32          { return uint32(rand()) }
    func Fastrand64() uint64        { return rand() }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  9. src/runtime/runtime-gdb_test.go

    		"-ex", "set startup-with-shell off",
    		"-ex", "break main.main",
    		"-ex", "run",
    		"-ex", "print main.aConstant",
    		"-ex", "print main.largeConstant",
    		"-ex", "print main.minusOne",
    		"-ex", "print 'runtime.mSpanInUse'",
    		"-ex", "print 'runtime._PageSize'",
    		filepath.Join(dir, "a.exe"),
    	}
    	gdbArgsFixup(args)
    	got, err := exec.Command("gdb", args...).CombinedOutput()
    	t.Logf("gdb output:\n%s", got)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  10. src/runtime/pprof/pprof.go

    	fmt.Fprintf(w, "# HeapReleased = %d\n", s.HeapReleased)
    	fmt.Fprintf(w, "# HeapObjects = %d\n", s.HeapObjects)
    
    	fmt.Fprintf(w, "# Stack = %d / %d\n", s.StackInuse, s.StackSys)
    	fmt.Fprintf(w, "# MSpan = %d / %d\n", s.MSpanInuse, s.MSpanSys)
    	fmt.Fprintf(w, "# MCache = %d / %d\n", s.MCacheInuse, s.MCacheSys)
    	fmt.Fprintf(w, "# BuckHashSys = %d\n", s.BuckHashSys)
    	fmt.Fprintf(w, "# GCSys = %d\n", s.GCSys)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 30.6K bytes
    - Viewed (0)
Back to top