Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 47 for stw (0.03 sec)

  1. src/runtime/mgclimit.go

    }
    
    // finishGCTransition notifies the limiter that the GC transition is complete
    // and releases ownership of it. It also accumulates STW time in the bucket.
    // now must be the timestamp from the end of the STW pause.
    func (l *gcCPULimiterState) finishGCTransition(now int64) {
    	if !l.transitioning {
    		throw("finishGCTransition called without starting one?")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 22:07:41 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  2. src/runtime/mprof.go

    		// allocation estimate without bothering to STW. As long as
    		// this is close, then we'll only need to STW once (on the next
    		// call).
    		return int(gcount()), false
    	}
    
    	semacquire(&goroutineProfile.sema)
    
    	ourg := getg()
    
    	pcbuf := makeProfStack() // see saveg() for explanation
    	stw := stopTheWorld(stwGoroutineProfile)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  3. src/runtime/os_linux.go

    	}
    
    	// STW to guarantee that user goroutines see an atomic change to thread
    	// state. Without STW, goroutines could migrate Ms while change is in
    	// progress and e.g., see state old -> new -> old -> new.
    	//
    	// N.B. Internally, this function does not depend on STW to
    	// successfully change every thread. It is only needed for user
    	// expectations, per above.
    	stw := stopTheWorld(stwAllThreadsSyscall)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 25.9K 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/cmd/vendor/golang.org/x/arch/ppc64/ppc64asm/plan9.go

    	// store instructions always have the memory operand at the end, no need to reorder
    	// indexed stores handled separately
    	case STB, STBU,
    		STH, STHU,
    		STW, STWU,
    		STD, STDU,
    		STFD, STFDU,
    		STFS, STFSU,
    		STQ, HASHST, HASHSTP:
    		return op + " " + strings.Join(args, ",")
    
    	case FCMPU, FCMPO, CMPD, CMPDI, CMPLD, CMPLDI, CMPW, CMPWI, CMPLW, CMPLWI:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 22 17:16:14 UTC 2022
    - 10.9K bytes
    - Viewed (0)
  7. src/runtime/mstats.go

    	mcache_sys   sysMemStat
    	buckhash_sys sysMemStat // profiling bucket hash table
    
    	// Statistics about GC overhead.
    	gcMiscSys sysMemStat // updated atomically or during STW
    
    	// Miscellaneous statistics.
    	other_sys sysMemStat // updated atomically or during STW
    
    	// Statistics about the garbage collector.
    
    	// Protected by mheap or worldsema during GC.
    	last_gc_unix    uint64 // last gc (in unix time)
    	pause_total_ns  uint64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 21:03:13 UTC 2024
    - 34.2K bytes
    - Viewed (0)
  8. 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)
  9. src/runtime/trace.go

    	// This is necessary to ensure the consistency of the STW events. If we're feeling
    	// adventurous we could lift this restriction and add a STWActive event, but the
    	// cost of maintaining this consistency is low. We're not going to hold this semaphore
    	// for very long and most STW periods are very short.
    	// Once we hold worldsema, prevent preemption as well so we're not interrupted partway
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  10. src/runtime/export_test.go

    var ReadUnaligned64 = readUnaligned64
    
    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()) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
Back to top