- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 638 for zeroing (0.12 sec)
-
src/cmd/compile/internal/riscv64/ggen.go
p = pp.Append(p, obj.ADUFFZERO, obj.TYPE_NONE, 0, 0, obj.TYPE_MEM, 0, 0) p.To.Name = obj.NAME_EXTERN p.To.Sym = ir.Syms.Duffzero p.To.Offset = 8 * (128 - cnt/int64(types.PtrSize)) return p } // Loop, zeroing pointer width bytes at a time. // ADD $(off), SP, T0 // ADD $(cnt), T0, T1 // loop: // MOV ZERO, (T0) // ADD $Widthptr, T0 // BNE T0, T1, loop
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 19 15:59:22 UTC 2022 - 1.8K bytes - Viewed (0) -
test/fixedbugs/issue5373.go
// run // Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Ensure that zeroing range loops have the requisite side-effects. package main import ( "fmt" "os" ) func check(n int) { // When n == 0, i is untouched by the range loop. // Picking an initial value of -1 for i makes the
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 1.4K bytes - Viewed (0) -
src/internal/bytealg/bytealg.go
h -= pow * uint32(s[i+n]) if h == hashss && string(s[i:i+n]) == string(sep) { return i } } return -1 } // MakeNoZero makes a slice of length n and capacity of at least n Bytes // without zeroing the bytes (including the bytes between len and cap). // It is the caller's responsibility to ensure uninitialized bytes // do not leak to the end user.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 19 19:51:15 UTC 2024 - 3.1K 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/HACKING.md
before they become visible as GC roots. Otherwise, the GC may observe stale heap pointers. See "Zero-initialization versus zeroing". Zero-initialization versus zeroing ================================== There are two types of zeroing in the runtime, depending on whether the memory is already initialized to a type-safe state. If memory is not in a type-safe state, meaning it potentially contains
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 13.9K bytes - Viewed (0) -
pkg/slices/slices.go
func FilterInPlace[E any](s []E, f func(E) bool) []E { n := 0 for _, val := range s { if f(val) { s[n] = val n++ } } // If those elements contain pointers you might consider zeroing those elements // so that objects they reference can be garbage collected." var empty E for i := n; i < len(s); i++ { s[i] = empty } s = s[:n] return s }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 15 06:28:11 UTC 2024 - 7.9K bytes - Viewed (0) -
src/runtime/memclr_arm64.s
ending: RET zero_exact_16: // n is exactly 16 bytes STP (ZR, ZR), (R0) RET zero_by_16: // n greater than 16 bytes, check if the start address is aligned NEG R0, R4 ANDS $15, R4, R4 // Try zeroing using zva if the start address is aligned with 16 BEQ try_zva // Non-aligned store STP (ZR, ZR), (R0) // Make the destination aligned SUB R4, R1, R1 ADD R4, R0, R0 B try_zva tail_maybe_long:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 18 18:26:13 UTC 2022 - 3.6K bytes - Viewed (0) -
src/cmd/compile/internal/test/zerorange_test.go
// the stack frame in certain specific circumstances. // // In the current compiler implementation, for zerorange to be // invoked, we need to have an ambiguously live variable that needs // zeroing. One way to trigger this is to have a function with an // open-coded defer, where the opendefer function has an argument that // contains a pointer (this is what's used below). //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 01 18:18:07 UTC 2022 - 4.1K bytes - Viewed (0) -
src/cmd/compile/internal/test/testdata/gen/zeroGen.go
// license that can be found in the LICENSE file. package main import ( "bytes" "fmt" "go/format" "log" "os" ) // This program generates tests to verify that zeroing operations // zero the data they are supposed to and clobber no adjacent values. // run as `go run zeroGen.go`. A file called zero.go // will be written into the parent directory containing the tests.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 20 02:13:02 UTC 2022 - 4.1K bytes - Viewed (0) -
src/cmd/internal/obj/s390x/a.out.go
REG_AR14 REG_AR15 REG_RESERVED // end of allocated registers REGARG = -1 // -1 disables passing the first argument in register REGRT1 = REG_R3 // used during zeroing of the stack - not reserved REGRT2 = REG_R4 // used during zeroing of the stack - not reserved REGTMP = REG_R10 // scratch register used in the assembler and linker REGTMP2 = REG_R11 // scratch register used in the assembler and linker
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 05 16:41:03 UTC 2023 - 12.4K bytes - Viewed (0)