Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 642 for mspan (0.06 sec)

  1. src/runtime/stack.go

    	if s.state.get() != mSpanManual {
    		throw("freeing stack not in a stack span")
    	}
    	if s.manualFreeList.ptr() == nil {
    		// s will now have a free stack
    		stackpool[order].item.span.insert(s)
    	}
    	x.ptr().next = s.manualFreeList
    	s.manualFreeList = x
    	s.allocCount--
    	if gcphase == _GCoff && s.allocCount == 0 {
    		// Span is completely free. Return it to the heap
    		// immediately if we're sweeping.
    		//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  2. src/runtime/mstats.go

    	// regions of memory 8K or larger. A span may be in one of
    	// three states:
    	//
    	// An "idle" span contains no objects or other data. The
    	// physical memory backing an idle span can be released back
    	// to the OS (but the virtual address space never is), or it
    	// can be converted into an "in use" or "stack" span.
    	//
    	// An "in use" span contains at least one heap object and may
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 21:03:13 UTC 2024
    - 34.2K bytes
    - Viewed (0)
  3. src/runtime/heapdump.go

    	// bss segment
    	dumpint(tagBSS)
    	dumpint(uint64(firstmoduledata.bss))
    	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
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  4. src/runtime/gc_test.go

    	for i := 0; i < b.N; i++ {
    		b.StartTimer()
    		runtime.GC()
    		runtime.GC()
    		b.StopTimer()
    	}
    	close(teardown)
    }
    
    func BenchmarkMSpanCountAlloc(b *testing.B) {
    	// Allocate one dummy mspan for the whole benchmark.
    	s := runtime.AllocMSpan()
    	defer runtime.FreeMSpan(s)
    
    	// n is the number of bytes to benchmark against.
    	// n must always be a multiple of 8, since gcBits is
    	// always rounded up 8 bytes.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 05 22:33:52 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  5. src/runtime/metrics_test.go

    		case "/memory/classes/metadata/mcache/inuse:bytes":
    			checkUint64(t, name, samples[i].Value.Uint64(), mstats.MCacheInuse)
    		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":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 45K bytes
    - Viewed (0)
  6. src/runtime/runtime2.go

    	sudogbuf   [128]*sudog
    
    	// Cache of mspan objects from the heap.
    	mspancache struct {
    		// We need an explicit length here because this field is used
    		// in allocation codepaths where write barriers are not allowed,
    		// and eliminating the write barrier/keeping it eliminated from
    		// slice updates is tricky, more so than just managing the length
    		// ourselves.
    		len int
    		buf [128]*mspan
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 47.9K bytes
    - Viewed (0)
  7. 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)
  8. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/text/Span.java

    import com.google.common.base.Objects;
    
    import java.io.Serializable;
    
    public class Span implements Serializable {
        private final Style style;
        private final String text;
    
        public Span(Style style, String text) {
            this.style = style;
            this.text = text;
        }
    
        public Span(String text) {
            this(Style.NORMAL, text);
        }
    
        public Style getStyle() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  9. src/internal/msan/msan.go

    // Copyright 2024 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build msan
    
    package msan
    
    import (
    	"unsafe"
    )
    
    const Enabled = true
    
    //go:linkname Read runtime.msanread
    func Read(addr unsafe.Pointer, sz uintptr)
    
    //go:linkname Write runtime.msanwrite
    func Write(addr unsafe.Pointer, sz uintptr)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 20:50:21 UTC 2024
    - 647 bytes
    - Viewed (0)
  10. src/runtime/msan/msan.go

    // Copyright 2015 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build msan && ((linux && (amd64 || arm64 || loong64)) || (freebsd && amd64))
    
    package msan
    
    /*
    #cgo CFLAGS: -fsanitize=memory
    #cgo LDFLAGS: -fsanitize=memory
    
    #include <stdint.h>
    #include <sanitizer/msan_interface.h>
    
    void __msan_read_go(void *addr, uintptr_t sz) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 25 20:58:13 UTC 2023
    - 729 bytes
    - Viewed (0)
Back to top