Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for memclrNoHeapPointers (0.26 sec)

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

    		throw("runtime: internal error")
    	}
    
    	if f.list != nil {
    		v := unsafe.Pointer(f.list)
    		f.list = f.list.next
    		f.inuse += f.size
    		if f.zero {
    			memclrNoHeapPointers(v, f.size)
    		}
    		return v
    	}
    	if uintptr(f.nchunk) < f.size {
    		f.chunk = uintptr(persistentalloc(uintptr(f.nalloc), 0, f.stat))
    		f.nchunk = f.nalloc
    	}
    
    	v := unsafe.Pointer(f.chunk)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 24 20:28:25 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  8. src/cmd/internal/goobj/builtinlist.go

    	{"runtime.panicunsafeslicenilptr", 1},
    	{"runtime.unsafestringcheckptr", 1},
    	{"runtime.panicunsafestringlen", 1},
    	{"runtime.panicunsafestringnilptr", 1},
    	{"runtime.memmove", 1},
    	{"runtime.memclrNoHeapPointers", 1},
    	{"runtime.memclrHasPointers", 1},
    	{"runtime.memequal", 1},
    	{"runtime.memequal0", 1},
    	{"runtime.memequal8", 1},
    	{"runtime.memequal16", 1},
    	{"runtime.memequal32", 1},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 7.4K bytes
    - Viewed (0)
Back to top