- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 1,094 for allocations (0.29 sec)
-
src/crypto/internal/nistec/nistec_test.go
t.Fatal(err) } out = p.BytesCompressed() if _, err := p.SetBytes(out); err != nil { t.Fatal(err) } }); allocs > 0 { t.Errorf("expected zero allocations, got %0.1f", allocs) } }) t.Run("P256", func(t *testing.T) { if allocs := testing.AllocsPerRun(10, func() { p := nistec.NewP256Point().SetGenerator() scalar := make([]byte, 32) rand.Read(scalar)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 12 18:48:23 UTC 2023 - 8.4K bytes - Viewed (0) -
src/runtime/testdata/testprog/gc.go
allocTotal = 32 << 20 // The page cache could hide 64 8-KiB pages from the scavenger today. maxPageCache = (8 << 10) * 64 ) // How big the allocations are needs to depend on the page size. // If the page size is too big and the allocations are too small, // they might not be aligned to the physical page size, so the scavenger // will gloss over them. pageSize := os.Getpagesize() var allocChunk int
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Oct 02 02:28:27 UTC 2022 - 12.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/kmsv2/cache.go
h.Reset() if _, err := h.Write(s); err != nil { panic(err) // Write() on hash never fails } key := toString(h.Sum(nil)) // skip base64 encoding to save an allocation c.hashPool.Put(h) return key } // toString performs unholy acts to avoid allocations func toString(b []byte) string { // unsafe.SliceData relies on cap whereas we want to rely on len if len(b) == 0 { return "" }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Aug 31 20:26:58 UTC 2023 - 3.5K bytes - Viewed (0) -
pkg/registry/core/service/portallocator/controller/repair.go
} // runOnce verifies the state of the port allocations and returns an error if an unrecoverable problem occurs. func (c *Repair) runOnce() error { return retry.RetryOnConflict(retry.DefaultBackoff, func() error { err := c.doRunOnce() if err != nil { nodePortRepairReconcileErrors.Inc() } return err }) } // doRunOnce verifies the state of the port allocations and returns an error if an unrecoverable problem occurs.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Sep 30 15:46:06 UTC 2023 - 10.4K bytes - Viewed (0) -
test/fixedbugs/issue36516.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 540 bytes - Viewed (0) -
pkg/kubelet/status/state/state_checkpoint.go
} // NewStateCheckpoint creates new State for keeping track of pod resource allocations with checkpoint backend func NewStateCheckpoint(stateDir, checkpointName string) (State, error) { checkpointManager, err := checkpointmanager.NewCheckpointManager(stateDir) if err != nil { return nil, fmt.Errorf("failed to initialize checkpoint manager for pod allocation tracking: %v", err) } stateCheckpoint := &stateCheckpoint{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 13 00:16:44 UTC 2023 - 6.9K bytes - Viewed (0) -
src/internal/syscall/windows/registry/zsyscall_windows.go
"unsafe" ) var _ unsafe.Pointer // Do the interface allocations only once for common // Errno values. const ( errnoERROR_IO_PENDING = 997 ) var ( errERROR_IO_PENDING error = syscall.Errno(errnoERROR_IO_PENDING) errERROR_EINVAL error = syscall.EINVAL ) // errnoErr returns common boxed Errno values, to prevent // allocations at runtime. func errnoErr(e syscall.Errno) error { switch e { case 0:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 02 15:41:00 UTC 2020 - 4K bytes - Viewed (0) -
src/runtime/mfixalloc.go
// Malloc uses a FixAlloc wrapped around sysAlloc to manage its // mcache and mspan objects. // // Memory returned by fixalloc.alloc is zeroed by default, but the // caller may take responsibility for zeroing allocations by setting // the zero flag to false. This is only safe if the memory never // contains heap pointers. // // The caller is responsible for locking around FixAlloc calls.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 24 20:28:25 UTC 2023 - 3.1K bytes - Viewed (0) -
src/runtime/metrics/description.go
Kind: KindUint64, }, { Name: "/gc/heap/tiny/allocs:objects", Description: "Count of small allocations that are packed together into blocks. " + "These allocations are counted separately from other allocations " + "because each individual allocation is not tracked by the runtime, " + "only their block. Each block is already accounted for in " + "allocs-by-size and frees-by-size.",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 06 17:59:12 UTC 2023 - 19.6K bytes - Viewed (0) -
src/go/printer/testdata/comments2.golden
_ = xxxxxxxxxxxxxxxxxxxxxxxxxxxx // comment _ = yyyyyyyyyyyyyyyy // comment - should be aligned // test case from issue label: mask := uint64(1)<<c - 1 // Allocation mask used := atomic.LoadUint64(&h.used) // Current allocations } // Test cases for issue 18782 var _ = [][]int{ /* a, b, c, d, e */ /* a */ {0, 0, 0, 0, 0}, /* b */ {0, 5, 4, 4, 4}, /* c */ {0, 4, 5, 4, 4},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:31:50 UTC 2022 - 2.2K bytes - Viewed (0)