Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for raceacquireg (0.19 sec)

  1. src/runtime/mgcmark.go

    retry:
    	if gcCPULimiter.limiting() {
    		// If the CPU limiter is enabled, intentionally don't
    		// assist to reduce the amount of CPU time spent in the GC.
    		if enteredMarkAssistForTracing {
    			trace := traceAcquire()
    			if trace.ok() {
    				trace.GCMarkAssistDone()
    				// Set this *after* we trace the end to make sure
    				// that we emit an in-progress event if this is
    				// the first event for the goroutine in the trace
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 21:25:11 UTC 2024
    - 52.5K bytes
    - Viewed (0)
  2. src/runtime/mprof.go

    	// goroutineProfiled field cleared.
    	forEachGRace(func(gp1 *g) {
    		gp1.goroutineProfiled.Store(goroutineProfileAbsent)
    	})
    
    	if raceenabled {
    		raceacquire(unsafe.Pointer(&labelSync))
    	}
    
    	if n != int(endOffset) {
    		// It's a big surprise that the number of goroutines changed while we
    		// were collecting the profile. But probably better to return a
    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/mheap.go

    		return
    	}
    
    	// Disable preemption so the GC can't start while we're
    	// sweeping, so we can read h.sweepArenas, and so
    	// traceGCSweepStart/Done pair on the P.
    	mp := acquirem()
    
    	trace := traceAcquire()
    	if trace.ok() {
    		trace.GCSweepStart()
    		traceRelease(trace)
    	}
    
    	arenas := h.sweepArenas
    	locked := false
    	for npage > 0 {
    		// Pull from accumulated credit first.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 78K bytes
    - Viewed (0)
  4. src/runtime/mgc.go

    	semacquire(&worldsema)
    
    	// For stats, check if this GC was forced by the user.
    	// Update it under gcsema to avoid gctrace getting wrong values.
    	work.userForced = trigger.kind == gcTriggerCycle
    
    	trace := traceAcquire()
    	if trace.ok() {
    		trace.GCStart()
    		traceRelease(trace)
    	}
    
    	// Check that all Ps have finished deferred mcache flushes.
    	for _, p := range allp {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62K bytes
    - Viewed (0)
  5. src/runtime/malloc.go

    			// Init functions are executed sequentially in a single goroutine.
    			inittrace.bytes += uint64(fullSize)
    		}
    
    		if traceAllocFreeEnabled() {
    			trace := traceAcquire()
    			if trace.ok() {
    				trace.HeapObjectAlloc(uintptr(x), typ)
    				traceRelease(trace)
    			}
    		}
    	}
    
    	if assistG != nil {
    		// Account for internal fragmentation in the assist
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go

    }
    
    func Read(fd int, p []byte) (n int, err error) {
    	n, err = read(fd, p)
    	if raceenabled {
    		if n > 0 {
    			raceWriteRange(unsafe.Pointer(&p[0]), n)
    		}
    		if err == nil {
    			raceAcquire(unsafe.Pointer(&ioSync))
    		}
    	}
    	return
    }
    
    func Write(fd int, p []byte) (n int, err error) {
    	if raceenabled {
    		raceReleaseMerge(unsafe.Pointer(&ioSync))
    	}
    	n, err = write(fd, p)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 84.4K bytes
    - Viewed (0)
Back to top