- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 899 for zeroed (0.18 sec)
-
src/runtime/mkduff.go
fmt.Fprintln(w, "\tMOVW.P\tR0, 4(R2)") fmt.Fprintln(w) } fmt.Fprintln(w, "\tRET") } func zeroARM64(w io.Writer) { // ZR: always zero // R20: ptr to memory to be zeroed // On return, R20 points to the last zeroed dword. fmt.Fprintln(w, "TEXT runtime·duffzero<ABIInternal>(SB), NOSPLIT|NOFRAME, $0-0") for i := 0; i < 63; i++ { fmt.Fprintln(w, "\tSTP.P\t(ZR, ZR), 16(R20)") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 21 19:04:21 UTC 2023 - 8K bytes - Viewed (0) -
src/cmd/compile/internal/test/zerorange_test.go
// ensure that output param is allocated on the heap. Also, since there is a // defer, the pointer to each output param must be zeroed in the prologue (see // plive.go:epilogue()). So, we will get a block of one or more stack slots that // need to be zeroed. Hence, we are testing compilation completes successfully when // zerorange calls of various sizes (8-136 bytes) are generated. We are not
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 01 18:18:07 UTC 2022 - 4.1K bytes - Viewed (0) -
test/writebarrier.go
} } func f27(p *int) []interface{} { return []interface{}{ nil, // no write barrier: zeroed memory, nil ptr (*T26)(nil), // no write barrier: zeroed memory, type ptr & nil ptr &g26, // no write barrier: zeroed memory, type ptr & global ptr 7, // no write barrier: zeroed memory, type ptr & global ptr p, // ERROR "write barrier" } } var g28 [256]uint64
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 23 19:46:36 UTC 2021 - 5.9K bytes - Viewed (0) -
src/runtime/mfixalloc.go
// Fixed-size object allocator. Returned memory is not zeroed. // // See malloc.go for overview. package runtime import ( "runtime/internal/sys" "unsafe" ) // fixalloc is a simple free-list allocator for fixed size objects. // 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
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 24 20:28:25 UTC 2023 - 3.1K bytes - Viewed (0) -
test/fixedbugs/issue18410.go
// license that can be found in the LICENSE file. // This checks partially initialized structure literals // used to create value.method functions have their // non-initialized fields properly zeroed/nil'd package main type X struct { A, B, C *int } //go:noinline func (t X) Print() { if t.B != nil { panic("t.B must be nil") } } //go:noinline func caller(f func()) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jan 06 20:35:52 UTC 2017 - 686 bytes - Viewed (0) -
test/fixedbugs/issue8947.go
// run // Copyright 2014 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. // Some uses of zeroed constants in non-assignment // expressions broke with our more aggressive zeroing // of assignments (internal compiler errors). package main func f1() { type T [2]int p := T{0, 1} switch p { case T{0, 0}: panic("wrong1")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 751 bytes - Viewed (0) -
test/fixedbugs/issue34723.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Make sure we don't introduce write barriers where we // don't need them. These cases are writing pointers to // globals to zeroed memory. package main func f1() []string { return []string{"a"} } func f2() []string { return []string{"a", "b"} } type T struct { a [6]*int } func f3() *T { t := new(T)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 07 17:19:13 UTC 2019 - 1K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/allocator.go
// Allocate reserves memory for n bytes only if the underlying array doesn't have enough capacity // otherwise it returns previously allocated block of memory. // // Note that the returned array is not zeroed, it is the caller's // responsibility to clean the memory if needed. func (a *Allocator) Allocate(n uint64) []byte { if uint64(cap(a.buf)) >= n { a.buf = a.buf[:n] return a.buf } // grow the buffer
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jul 27 03:17:50 UTC 2022 - 2.2K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/writebarrier.go
// will no longer necessarily be zero). for i := min; i < max; i += ptrSize { bit := i / ptrSize z.mask &^= 1 << uint(bit) } if z.mask == 0 { // No more known zeros - don't bother keeping. continue } // Save updated known zero contents for new store. if zeroes[v.ID] != z { zeroes[v.ID] = z changed = true } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 19:09:14 UTC 2023 - 23.5K bytes - Viewed (0) -
src/runtime/slice.go
// Added entries [oldLen, newLen) are not initialized by growslice // (although for pointer-containing element types, they are zeroed). They // must be initialized by the caller. // Trailing entries [newLen, newCap) are zeroed. // // growslice's odd calling convention makes the generated code that calls // this function simpler. In particular, it accepts and returns the
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 12.2K bytes - Viewed (0)