- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 33 for memclrNoHeapPointers (0.54 sec)
-
test/codegen/slices.go
// ppc64x:-`.*runtime\.makeslice` // ppc64x:-`.*runtime\.panicmakeslicelen` return append(s, make([]int, uint(1<<2))...) } // On ppc64x continue to use memclrNoHeapPointers // for sizes >= 512. func SliceExtensionConst512(s []int) []int { // amd64:-`.*runtime\.memclrNoHeapPointers` // ppc64x:`.*runtime\.memclrNoHeapPointers` return append(s, make([]int, 1<<9)...) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 23 18:57:27 UTC 2023 - 9.8K bytes - Viewed (0) -
test/codegen/issue52635.go
type T struct { a *[10]int b [10]int } func (t *T) f() { // amd64:-".*runtime.memclrNoHeapPointers" // amd64:"DUFFZERO" for i := range t.a { t.a[i] = 0 } // amd64:-".*runtime.memclrNoHeapPointers" // amd64:"DUFFZERO" for i := range *t.a { t.a[i] = 0 } // amd64:-".*runtime.memclrNoHeapPointers" // amd64:"DUFFZERO" for i := range t.a { (*t.a)[i] = 0 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 31 18:11:24 UTC 2023 - 816 bytes - Viewed (0) -
src/runtime/memclr_wasm.s
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #include "textflag.h" // See memclrNoHeapPointers Go doc for important implementation constraints. // func memclrNoHeapPointers(ptr unsafe.Pointer, n uintptr) TEXT runtime·memclrNoHeapPointers(SB), NOSPLIT, $0-16 MOVD ptr+0(FP), R0 MOVD n+8(FP), R1 Get R0 I32WrapI64 I32Const $0 Get R1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 27 10:37:01 UTC 2022 - 485 bytes - Viewed (0) -
src/runtime/memclr_loong64.s
// Copyright 2022 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. #include "go_asm.h" #include "textflag.h" // func memclrNoHeapPointers(ptr unsafe.Pointer, n uintptr) TEXT runtime·memclrNoHeapPointers<ABIInternal>(SB),NOSPLIT,$0-16 ADDV R4, R5, R6 // if less than 8 bytes, do one byte at a time SGTU $8, R5, R8 BNE R8, out
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 15:04:25 UTC 2024 - 766 bytes - Viewed (0) -
src/runtime/stubs.go
// Do not remove or change the type signature. // See go.dev/issue/67401. // //go:linkname memclrNoHeapPointers //go:noescape func memclrNoHeapPointers(ptr unsafe.Pointer, n uintptr) //go:linkname reflect_memclrNoHeapPointers reflect.memclrNoHeapPointers func reflect_memclrNoHeapPointers(ptr unsafe.Pointer, n uintptr) { memclrNoHeapPointers(ptr, n) } // memmove copies n bytes from "from" to "to". //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 20.2K bytes - Viewed (0) -
src/runtime/mem_sbrk.go
} *p = memHdr{} return unsafe.Pointer(p) } prevp = p } return sbrk(n) } func memFree(ap unsafe.Pointer, n uintptr) { n = memRound(n) memclrNoHeapPointers(ap, n) bp := (*memHdr)(ap) bp.size = n bpn := uintptr(ap) if memFreelist == 0 { bp.next = 0 memFreelist.set(bp) return } p := memFreelist.ptr() if bpn < uintptr(unsafe.Pointer(p)) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 19:05:10 UTC 2023 - 4.2K bytes - Viewed (0) -
src/runtime/mbarrier.go
} // typedmemclr clears the typed memory at ptr with type typ. The // memory at ptr must already be initialized (and hence in type-safe // state). If the memory is being initialized for the first time, see // memclrNoHeapPointers. // // If the caller knows that typ has pointers, it can alternatively // call memclrHasPointers. // // TODO: A "go:nosplitrec" annotation would be perfect for this. // //go:nosplit
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 15.7K bytes - Viewed (0) -
src/runtime/memclr_ppc64x.s
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build ppc64 || ppc64le #include "textflag.h" // See memclrNoHeapPointers Go doc for important implementation constraints. // func memclrNoHeapPointers(ptr unsafe.Pointer, n uintptr) TEXT runtime·memclrNoHeapPointers<ABIInternal>(SB), NOSPLIT|NOFRAME, $0-16 // R3 = ptr // R4 = n
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 16 17:08:59 UTC 2023 - 4.4K bytes - Viewed (0) -
src/runtime/memclr_riscv64.s
// Copyright 2016 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. #include "textflag.h" // See memclrNoHeapPointers Go doc for important implementation constraints. // void runtime·memclrNoHeapPointers(void*, uintptr) TEXT runtime·memclrNoHeapPointers<ABIInternal>(SB),NOSPLIT,$0-16 // X10 = ptr // X11 = n
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 13:57:06 UTC 2023 - 1.7K bytes - Viewed (0) -
src/runtime/slice.go
// same element width. tomem = et.Size_ * uintptr(tolen) copymem = tomem } var to unsafe.Pointer if !et.Pointers() { to = mallocgc(tomem, nil, false) if copymem < tomem { memclrNoHeapPointers(add(to, copymem), tomem-copymem) } } else { // Note: can't use rawmem (which avoids zeroing of memory), because then GC can scan uninitialized memory. to = mallocgc(tomem, et, true)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 12.2K bytes - Viewed (0)