Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 254 for mspan (0.04 sec)

  1. src/runtime/mspanset.go

    	h.u.Store(0)
    }
    
    // atomicMSpanPointer is an atomic.Pointer[mspan]. Can't use generics because it's NotInHeap.
    type atomicMSpanPointer struct {
    	p atomic.UnsafePointer
    }
    
    // Load returns the *mspan.
    func (p *atomicMSpanPointer) Load() *mspan {
    	return (*mspan)(p.p.Load())
    }
    
    // Store stores an *mspan.
    func (p *atomicMSpanPointer) StoreNoWB(s *mspan) {
    	p.p.StoreNoWB(unsafe.Pointer(s))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  2. src/runtime/mgcsweep.go

    		throw("mspan.sweep: m is not locked")
    	}
    
    	s := sl.mspan
    	if !preserve {
    		// We'll release ownership of this span. Nil it out to
    		// prevent the caller from accidentally using it.
    		sl.mspan = nil
    	}
    
    	sweepgen := mheap_.sweepgen
    	if state := s.state.get(); state != mSpanInUse || s.sweepgen != sweepgen-1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:52:18 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  3. src/runtime/pinner.go

    	span.ensureSwept()
    	KeepAlive(ptr) // make sure ptr is still alive after span is swept
    
    	objIndex := span.objIndex(uintptr(ptr))
    
    	lock(&span.speciallock) // guard against concurrent calls of setPinned on same span
    
    	pinnerBits := span.getPinnerBits()
    	if pinnerBits == nil {
    		pinnerBits = span.newPinnerBits()
    		span.setPinnerBits(pinnerBits)
    	}
    	pinState := pinnerBits.ofObject(objIndex)
    	if pin {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 11K bytes
    - Viewed (0)
  4. src/runtime/arena.go

    		rzSize := computeRZlog(span.elemsize)
    		span.elemsize -= rzSize
    		span.largeType.Size_ = span.elemsize
    		rzStart := span.base() + span.elemsize
    		span.userArenaChunkFree = makeAddrRange(span.base(), rzStart)
    		asanpoison(unsafe.Pointer(rzStart), span.limit-rzStart)
    		asanunpoison(unsafe.Pointer(span.base()), span.elemsize)
    	}
    
    	if rate := MemProfileRate; rate > 0 {
    		c := getMCache(mp)
    		if c == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:44:56 UTC 2024
    - 37.9K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/test/inl_test.go

    			"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",
    
    			// Trace-related ones.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  6. src/runtime/mcache.go

    		c = pp.mcache
    	}
    	return c
    }
    
    // refill acquires a new span of span class spc for c. This span will
    // have at least one free object. The current span in c must be full.
    //
    // Must run in a non-preemptible context since otherwise the owner of
    // c could change.
    func (c *mcache) refill(spc spanClass) {
    	// Return the current cached span to the central lists.
    	s := c.alloc[spc]
    
    	if s.allocCount != s.nelems {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 10K bytes
    - Viewed (0)
  7. src/runtime/export_test.go

    	}
    	return false
    }
    
    // mspan wrapper for testing.
    type MSpan mspan
    
    // Allocate an mspan for testing.
    func AllocMSpan() *MSpan {
    	var s *mspan
    	systemstack(func() {
    		lock(&mheap_.lock)
    		s = (*mspan)(mheap_.spanalloc.alloc())
    		unlock(&mheap_.lock)
    	})
    	return (*MSpan)(s)
    }
    
    // Free an allocated mspan.
    func FreeMSpan(s *MSpan) {
    	systemstack(func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  8. src/runtime/metrics/description.go

    		Kind:        KindUint64,
    	},
    	{
    		Name:        "/memory/classes/metadata/mspan/free:bytes",
    		Description: "Memory that is reserved for runtime mspan structures, but not in-use.",
    		Kind:        KindUint64,
    	},
    	{
    		Name:        "/memory/classes/metadata/mspan/inuse:bytes",
    		Description: "Memory that is occupied by runtime mspan structures that are currently being used.",
    		Kind:        KindUint64,
    	},
    	{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 06 17:59:12 UTC 2023
    - 19.6K bytes
    - Viewed (0)
  9. src/runtime/metrics/doc.go

    		Memory that is occupied by runtime mcache structures that are
    		currently being used.
    
    	/memory/classes/metadata/mspan/free:bytes
    		Memory that is reserved for runtime mspan structures, but not
    		in-use.
    
    	/memory/classes/metadata/mspan/inuse:bytes
    		Memory that is occupied by runtime mspan structures that are
    		currently being used.
    
    	/memory/classes/metadata/other:bytes
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:58:43 UTC 2024
    - 20K bytes
    - Viewed (0)
  10. src/runtime/metrics.go

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