Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for memclrNoHeapPointers (0.38 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. src/runtime/string.go

    // rawbyteslice allocates a new byte slice. The byte slice is not zeroed.
    func rawbyteslice(size int) (b []byte) {
    	cap := roundupsize(uintptr(size), true)
    	p := mallocgc(cap, nil, false)
    	if cap != uintptr(size) {
    		memclrNoHeapPointers(add(p, uintptr(size)), cap-uintptr(size))
    	}
    
    	*(*slice)(unsafe.Pointer(&b)) = slice{p, size, int(cap)}
    	return
    }
    
    // rawruneslice allocates a new rune slice. The rune slice is not zeroed.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/walk/range.go

    	var fn ir.Node
    	if a.Type().Elem().HasPointers() {
    		// memclrHasPointers(hp, hn)
    		ir.CurFunc.SetWBPos(wbPos)
    		fn = mkcallstmt("memclrHasPointers", hp, hn)
    	} else {
    		// memclrNoHeapPointers(hp, hn)
    		fn = mkcallstmt("memclrNoHeapPointers", hp, hn)
    	}
    
    	n.Body.Append(fn)
    
    	// For array range clear, also set "i = len(a) - 1"
    	if nrange != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 14:52:33 UTC 2023
    - 17.6K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/typecheck/_builtin/runtime.go

    func panicunsafeslicenilptr()
    func unsafestringcheckptr(ptr unsafe.Pointer, len int64)
    func panicunsafestringlen()
    func panicunsafestringnilptr()
    
    func memmove(to *any, frm *any, length uintptr)
    func memclrNoHeapPointers(ptr unsafe.Pointer, n uintptr)
    func memclrHasPointers(ptr unsafe.Pointer, n uintptr)
    
    func memequal(x, y *any, size uintptr) bool
    func memequal0(x, y *any) bool
    func memequal8(x, y *any) bool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  8. src/runtime/map_fast64.go

    				}
    			}
    			e := add(unsafe.Pointer(b), dataOffset+abi.MapBucketCount*8+i*uintptr(t.ValueSize))
    			if t.Elem.Pointers() {
    				memclrHasPointers(e, t.Elem.Size_)
    			} else {
    				memclrNoHeapPointers(e, t.Elem.Size_)
    			}
    			b.tophash[i] = emptyOne
    			// If the bucket now ends in a bunch of emptyOne states,
    			// change those to emptyRest states.
    			if i == abi.MapBucketCount-1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  9. src/runtime/export_test.go

    var Usleep = usleep
    
    var PhysPageSize = physPageSize
    var PhysHugePageSize = physHugePageSize
    
    var NetpollGenericInit = netpollGenericInit
    
    var Memmove = memmove
    var MemclrNoHeapPointers = memclrNoHeapPointers
    
    var CgoCheckPointer = cgoCheckPointer
    
    const CrashStackImplemented = crashStackImplemented
    
    const TracebackInnerFrames = tracebackInnerFrames
    const TracebackOuterFrames = tracebackOuterFrames
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  10. src/runtime/map_fast32.go

    				*(*unsafe.Pointer)(k) = nil
    			}
    			e := add(unsafe.Pointer(b), dataOffset+abi.MapBucketCount*4+i*uintptr(t.ValueSize))
    			if t.Elem.Pointers() {
    				memclrHasPointers(e, t.Elem.Size_)
    			} else {
    				memclrNoHeapPointers(e, t.Elem.Size_)
    			}
    			b.tophash[i] = emptyOne
    			// If the bucket now ends in a bunch of emptyOne states,
    			// change those to emptyRest states.
    			if i == abi.MapBucketCount-1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 13.9K bytes
    - Viewed (0)
Back to top