- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 18 for headroom (0.23 sec)
-
src/runtime/mgcpacer.go
// have for smaller heaps. headroom = memoryLimitMinHeapGoalHeadroom } if goal < headroom || goal-headroom < headroom { goal = headroom } else { goal = goal - headroom } // Don't let us go below the live heap. A heap goal below the live heap doesn't make sense. if goal < c.heapMarked { goal = c.heapMarked } return goal } const (
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 55.4K bytes - Viewed (0) -
src/internal/poll/splice_linux_test.go
// Exploit the timeout of "go test" as a timer for the subsequent verification. timeout := 5 * time.Minute if deadline, ok := t.Deadline(); ok { timeout = deadline.Sub(time.Now()) timeout -= timeout / 10 // Leave 10% headroom for cleanup. } expiredTime := time.NewTimer(timeout) defer expiredTime.Stop() // Trigger garbage collection repeatedly, waiting for all pipes in sync.Pool // to either be deallocated and closed, or to time out.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 21:49:26 UTC 2024 - 2.8K bytes - Viewed (0) -
src/runtime/mgcpacer_test.go
} } func applyMemoryLimitHeapGoalHeadroom(goal uint64) uint64 { headroom := goal / 100 * MemoryLimitHeapGoalHeadroomPercent if headroom < MemoryLimitMinHeapGoalHeadroom { headroom = MemoryLimitMinHeapGoalHeadroom } if goal < headroom || goal-headroom < headroom { goal = headroom } else { goal -= headroom } return goal } func TestIdleMarkWorkerCount(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 19 13:53:21 UTC 2023 - 39.3K bytes - Viewed (0) -
src/runtime/mgclimit.go
// // This is an internal function that deals just with the bucket. Prefer update. // l.lock must be held. func (l *gcCPULimiterState) accumulate(mutatorTime, gcTime int64) { headroom := l.bucket.capacity - l.bucket.fill enabled := headroom == 0 // Let's be careful about three things here: // 1. The addition and subtraction, for the invariants. // 2. Overflow. // 3. Excessive mutation of l.enabled, which is accessed
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 22 22:07:41 UTC 2024 - 17.3K bytes - Viewed (0) -
src/runtime/tracetime.go
// how long it takes to call through the scheduler. // We could be more aggressive and bump this up to 128 ns while still getting // useful data, but the extra bit doesn't save us that much and the headroom is // nice to have. // // Hitting this target resolution is easy in the nanotime case: just pick a // division of 64. In the cputicks case it's a bit more complex. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:17:41 UTC 2024 - 3.3K bytes - Viewed (0) -
src/net/net_test.go
func TestCloseWrite(t *testing.T) { switch runtime.GOOS { case "plan9": t.Skipf("not supported on %s", runtime.GOOS) } t.Parallel() deadline, _ := t.Deadline() if !deadline.IsZero() { // Leave 10% headroom on the deadline to report errors and clean up. deadline = deadline.Add(-time.Until(deadline) / 10) } for _, network := range []string{"tcp", "unix", "unixpacket"} { network := network
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 22 21:04:44 UTC 2024 - 13.3K bytes - Viewed (0) -
src/os/signal/signal_test.go
Notify(c, syscall.SIGHUP) t.Cleanup(func() { Stop(c) }) var subTimeout time.Duration if deadline, ok := t.Deadline(); ok { subTimeout = time.Until(deadline) subTimeout -= subTimeout / 10 // Leave 10% headroom for propagating output. } for i := 1; i <= 2; i++ { i := i t.Run(fmt.Sprintf("%d", i), func(t *testing.T) { t.Parallel() args := []string{ "-test.v",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 15:34:56 UTC 2023 - 27.2K bytes - Viewed (0) -
src/cmd/cgo/internal/testsanitizers/cc_test.go
err := cmd.Start() if err != nil { t.Fatalf("%v: %v", cmd, err) } if deadline, ok := t.Deadline(); ok { timeout := time.Until(deadline) timeout -= timeout / 10 // Leave 10% headroom for logging and cleanup. timer := time.AfterFunc(timeout, func() { cmd.Process.Signal(syscall.SIGQUIT) }) defer timer.Stop() } if err := cmd.Wait(); err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 09 20:00:56 UTC 2024 - 14.4K bytes - Viewed (0) -
src/compress/flate/huffman_bit_writer.go
// Should preferably be a multiple of 6, since // we accumulate 6 bytes between writes to the buffer. bufferFlushSize = 240 // bufferSize is the actual output byte buffer size. // It must have additional headroom for a flush // which can contain up to 8 bytes. bufferSize = bufferFlushSize + 8 ) // The number of extra bits needed by length code X - LENGTH_CODES_START. var lengthExtraBits = []int8{ /* 257 */ 0, 0, 0,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 29 22:59:14 UTC 2022 - 18.4K bytes - Viewed (0) -
src/vendor/golang.org/x/crypto/internal/poly1305/sum_s390x.s
// value. These limbs are, for the most part, zero extended and // placed into 64-bit vector register elements. Each vector // register is 128-bits wide and so holds 2 of these elements. // Using 26-bit limbs allows us plenty of headroom to accommodate // accumulations before and after multiplication without // overflowing either 32-bits (before multiplication) or 64-bits // (after multiplication). //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 17.5K bytes - Viewed (0)