Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,139 for sweep (0.1 sec)

  1. src/runtime/testdata/testprog/preempt.go

    	runtime.GOMAXPROCS(1)
    	// Disable GC so we have complete control of what we're testing.
    	debug.SetGCPercent(-1)
    	// Out of an abundance of caution, also make sure that there are
    	// no GCs actively in progress. The sweep phase of a GC cycle
    	// for instance tries to preempt Ps at the very beginning.
    	runtime.GC()
    
    	// Start a goroutine with no sync safe-points.
    	var ready, ready2 uint32
    	go func() {
    		for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 07 17:46:04 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  2. src/runtime/traceevent.go

    	traceEvGCBegin            // GC start [timestamp, seq, stack ID]
    	traceEvGCEnd              // GC done [timestamp, seq]
    	traceEvGCSweepActive      // GC sweep active [timestamp, P ID]
    	traceEvGCSweepBegin       // GC sweep start [timestamp, stack ID]
    	traceEvGCSweepEnd         // GC sweep done [timestamp, swept bytes, reclaimed bytes]
    	traceEvGCMarkAssistActive // GC mark assist active [timestamp, goroutine 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)
  3. src/runtime/mklockrank.go

    NONE
    < sysmon
    < scavenge, forcegc;
    
    # Defer
    NONE < defer;
    
    # GC
    NONE <
      sweepWaiters,
      assistQueue,
      sweep;
    
    # Test only
    NONE < testR, testW;
    
    NONE < timerSend;
    
    # Scheduler, timers, netpoll
    NONE < allocmW, execW, cpuprof, pollCache, pollDesc, wakeableSleep;
    scavenge, sweep, testR, wakeableSleep, timerSend < hchan;
    assistQueue,
      cpuprof,
      forcegc,
      hchan,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:47:01 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/test/issue9400_linux.go

    	defer debug.SetGCPercent(debug.SetGCPercent(-1))
    	// SetGCPercent waits until the mark phase is over, but the runtime
    	// also preempts at the start of the sweep phase, so make sure that's
    	// done too. See #49695.
    	runtime.GC()
    
    	// Temporarily rewind the stack and trigger SIGSETXID
    	issue9400.RewindAndSetgid()
    
    	// Check test pattern
    	for i := range big {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 18 19:55:29 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  5. src/runtime/mheap.go

    	// access (since that may free the backing store).
    	allspans []*mspan // all spans out there
    
    	// Proportional sweep
    	//
    	// These parameters represent a linear function from gcController.heapLive
    	// to page sweep count. The proportional sweep system works to
    	// stay in the black by keeping the current page sweep count
    	// above this line at the current gcController.heapLive.
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 78K bytes
    - Viewed (0)
  6. src/internal/trace/event/go122/event.go

    	EvGCBegin            // GC start [timestamp, seq, stack ID]
    	EvGCEnd              // GC done [timestamp, seq]
    	EvGCSweepActive      // GC sweep active [timestamp, P ID]
    	EvGCSweepBegin       // GC sweep start [timestamp, stack ID]
    	EvGCSweepEnd         // GC sweep done [timestamp, swept bytes, reclaimed bytes]
    	EvGCMarkAssistActive // GC mark assist active [timestamp, goroutine ID]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  7. src/runtime/rwmutex_test.go

    	// Disable GC for this test (see issue #10958).
    	defer debug.SetGCPercent(debug.SetGCPercent(-1))
    	// SetGCPercent waits until the mark phase is over, but the runtime
    	// also preempts at the start of the sweep phase, so make sure that's
    	// done too.
    	GC()
    
    	doTestParallelReaders(1)
    	doTestParallelReaders(3)
    	doTestParallelReaders(4)
    }
    
    func reader(rwm *RWMutex, num_iterations int, activity *int32, cdone chan bool) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 15 22:00:45 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  8. src/cmd/link/internal/benchmark/bench.go

    	}
    	runtime.ReadMemStats(&m.curMark.endM)
    	if m.gc == GC {
    		runtime.GC()
    		runtime.ReadMemStats(&m.curMark.gcM)
    		if m.shouldPProf() {
    			// Collect a profile of the live heap. Do a
    			// second GC to force sweep completion so we
    			// get a complete snapshot of the live heap at
    			// the end of this phase.
    			runtime.GC()
    			f, err := os.Create(makePProfFilename(m.filebase, m.curMark.name, "memprof"))
    			if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 30 18:10:36 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  9. src/runtime/mgcpacer.go

    		if sweepDistTrigger > goal {
    			// Set the goal to maintain a minimum sweep distance since
    			// the last call to commit. Note that we never want to do this
    			// if we're in the memory limit regime, because it could push
    			// the goal up.
    			goal = sweepDistTrigger
    		}
    		// Since we ignore the sweep distance trigger in the memory
    		// limit regime, we need to ensure we don't propagate it to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 55.4K bytes
    - Viewed (0)
  10. src/runtime/proc_test.go

    				cack <- true
    				return
    			default:
    				runtime.Gosched()
    			}
    		}
    	}()
    	time.Sleep(10 * time.Millisecond)
    	c <- true
    	<-cack
    }
    
    func TestYieldLocked(t *testing.T) {
    	const N = 10
    	c := make(chan bool)
    	go func() {
    		runtime.LockOSThread()
    		for i := 0; i < N; i++ {
    			runtime.Gosched()
    			time.Sleep(time.Millisecond)
    		}
    		c <- true
    		// runtime.UnlockOSThread() is deliberately omitted
    	}()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 25.8K bytes
    - Viewed (0)
Back to top