Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for stw (0.02 sec)

  1. src/runtime/debug.go

    	}
    
    	lock(&sched.lock)
    	ret := int(gomaxprocs)
    	unlock(&sched.lock)
    	if n <= 0 || n == ret {
    		return ret
    	}
    
    	stw := stopTheWorldGC(stwGOMAXPROCS)
    
    	// newprocs will be processed by startTheWorld
    	newprocs = int32(n)
    
    	startTheWorldGC(stw)
    	return ret
    }
    
    // NumCPU returns the number of logical CPUs usable by the current process.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 11 20:38:24 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  2. src/sync/pool_test.go

    	var total uint64
    	for _, ns := range pauses {
    		total += ns
    	}
    	// ns/op for this benchmark is average STW time.
    	b.ReportMetric(float64(total)/float64(b.N), "ns/op")
    	b.ReportMetric(float64(pauses[len(pauses)*95/100]), "p95-ns/STW")
    	b.ReportMetric(float64(pauses[len(pauses)*50/100]), "p50-ns/STW")
    }
    
    func BenchmarkPoolExpensiveNew(b *testing.B) {
    	// Populate a pool with items that are expensive to construct
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 8K bytes
    - Viewed (0)
  3. src/runtime/traceevent.go

    	traceEvGoStatus            // goroutine status at the start of a generation [timestamp, goroutine ID, M ID, status]
    
    	// STW.
    	traceEvSTWBegin // STW start [timestamp, kind]
    	traceEvSTWEnd   // STW done [timestamp]
    
    	// GC events.
    	traceEvGCActive           // GC active [timestamp, seq]
    	traceEvGCBegin            // GC start [timestamp, seq, stack ID]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:47:01 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  4. src/sync/pool.go

    var (
    	allPoolsMu Mutex
    
    	// allPools is the set of pools that have non-empty primary
    	// caches. Protected by either 1) allPoolsMu and pinning or 2)
    	// STW.
    	allPools []*Pool
    
    	// oldPools is the set of pools that may have non-empty victim
    	// caches. Protected by STW.
    	oldPools []*Pool
    )
    
    func init() {
    	runtime_registerPoolCleanup(poolCleanup)
    }
    
    func indexLocal(l unsafe.Pointer, i int) *poolLocal {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  5. src/internal/trace/internal/oldtrace/parser_test.go

    	for i := 0; i < res.Events.Len(); i++ {
    		ev := res.Events.Ptr(i)
    		if ver >= 21 {
    			if ev.Type == EvSTWStart && res.Strings[ev.Args[0]] == "unknown" {
    				t.Errorf("found unknown STW event; update stwReasonStrings?")
    			}
    		}
    	}
    }
    
    func TestBuckets(t *testing.T) {
    	var evs Events
    
    	const N = eventsBucketSize*3 + 123
    	for i := 0; i < N; i++ {
    		evs.append(Event{Ts: Timestamp(i)})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  6. src/runtime/os3_plan9.go

    // license that can be found in the LICENSE file.
    
    package runtime
    
    import (
    	"internal/abi"
    	"internal/goarch"
    	"internal/stringslite"
    	"unsafe"
    )
    
    // May run during STW, so write barriers are not allowed.
    //
    //go:nowritebarrierrec
    func sighandler(_ureg *ureg, note *byte, gp *g) int {
    	gsignal := getg()
    	mp := gsignal.m
    
    	var t sigTabT
    	var docrash bool
    	var sig int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 4K bytes
    - Viewed (0)
Back to top