Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 779 for sweep (0.05 sec)

  1. src/runtime/malloc_test.go

    	GC()
    
    	for i := 0; i < b.N; i++ {
    		for _, ch := range m {
    			if ch != nil {
    				ch <- struct{}{}
    			}
    		}
    		time.Sleep(10 * time.Millisecond)
    		b.StartTimer()
    		GC()
    		b.StopTimer()
    	}
    
    	for _, ch := range m {
    		close(ch)
    	}
    	time.Sleep(10 * time.Millisecond)
    }
    
    func BenchmarkGoroutineIdle(b *testing.B) {
    	quit := make(chan struct{})
    	fn := func() {
    		<-quit
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  2. src/runtime/pinner.go

    		// this code is only called for Go pointer, so this must be a
    		// linker-allocated global object.
    		return true
    	}
    	pinnerBits := span.getPinnerBits()
    	// these pinnerBits might get unlinked by a concurrently running sweep, but
    	// that's OK because gcBits don't get cleared until the following GC cycle
    	// (nextMarkBitArenaEpoch)
    	if pinnerBits == nil {
    		return false
    	}
    	objIndex := span.objIndex(uintptr(ptr))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 11K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/liveness/intervals.go

    //    "xyz"   [3,8)
    //
    // Clients can construct an Intervals object from a given IR sequence
    // using the "IntervalsBuilder" helper abstraction (one builder per
    // candidate variable), by making a
    // backwards sweep and invoking the Live/Kill methods to note the
    // starts and end of a given lifetime. For the example above, we would
    // expect to see this sequence of calls to Live/Kill:
    //
    //    abc:  Live(9), Kill(8), Live(6), Kill(0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 21:55:27 UTC 2024
    - 10K bytes
    - Viewed (0)
  4. src/runtime/mgcstack.go

    // added during processing), we've found all the stack objects that
    // are live. Any dead stack objects are not scanned and their contents
    // will not keep heap objects live. Unlike the main garbage
    // collection, we can't sweep the dead stack objects; they live on in
    // a moribund state until the stack frame that contains them is
    // popped.
    //
    // A stack can look like this:
    //
    // +----------+
    // | foo()    |
    // | +------+ |
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 21 21:06:52 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  5. pilot/pkg/autoregistration/controller_test.go

    		c1.OnDisconnect(p1conn1)
    		// stop processing the delayed close queue in c1, forces using periodic cleanup
    		close(stop1)
    		stopped1 = true
    		// unfortunately, this retry at worst could be twice as long as the sweep interval
    		retry.UntilSuccessOrFail(t, func() error {
    			return checkNoEntry(store, wgA, p)
    		}, retry.Timeout(time.Until(time.Now().Add(21*features.WorkloadEntryCleanupGracePeriod))))
    	})
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 16 00:00:36 UTC 2024
    - 31.4K bytes
    - Viewed (0)
  6. src/internal/trace/gc.go

    					break
    				}
    				// This G has been in a mark assist *and running on its P* since the start
    				// of the trace.
    				fallthrough
    			case handleSweep(r):
    				// This P has been in sweep (or mark assist, from above) in the start of the trace.
    				//
    				// We don't need to do anything if UtilPerProc is set. If we get an event like
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 26K bytes
    - Viewed (0)
  7. src/internal/trace/oldtrace.go

    	addBuiltin(sEmpty, "")
    	addBuiltin(sMarkAssistWait, "GC mark assist wait for work")
    	addBuiltin(sSTWUnknown, "")
    	addBuiltin(sSTWGCMarkTermination, "GC mark termination")
    	addBuiltin(sSTWGCSweepTermination, "GC sweep termination")
    	addBuiltin(sSTWWriteHeapDump, "write heap dump")
    	addBuiltin(sSTWGoroutineProfile, "goroutine profile")
    	addBuiltin(sSTWGoroutineProfileCleanup, "goroutine profile cleanup")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  8. src/runtime/mprof.go

    	// naively count them, we would get a skew toward mallocs.
    	//
    	// Hence, we delay information to get consistent snapshots as
    	// of mark termination. Allocations count toward the next mark
    	// termination's snapshot, while sweep frees count toward the
    	// previous mark termination's snapshot:
    	//
    	//              MT          MT          MT          MT
    	//             .·|         .·|         .·|         .·|
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  9. src/runtime/runtime2.go

    	waitReasonGCSweepWait:           "GC sweep wait",
    	waitReasonGCScavengeWait:        "GC scavenge wait",
    	waitReasonChanReceive:           "chan receive",
    	waitReasonChanSend:              "chan send",
    	waitReasonFinalizerWait:         "finalizer wait",
    	waitReasonForceGCIdle:           "force gc (idle)",
    	waitReasonSemacquire:            "semacquire",
    	waitReasonSleep:                 "sleep",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 47.9K bytes
    - Viewed (0)
  10. src/runtime/arena.go

    	// won't make a bad decision, (2) we're currently non-preemptible and in the runtime,
    	// so a GC is blocked from starting. We might race with sweeping, which could
    	// put it on the "wrong" sweep list, but really don't care because the chunk is
    	// treated as a large object span and there's no meaningful difference between scan
    	// and noscan large objects in the sweeper. The STW at the start of the GC acts as a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:44:56 UTC 2024
    - 37.9K bytes
    - Viewed (0)
Back to top