Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 42 for memclrNoHeapPointers (0.65 sec)

  1. src/runtime/memclr_386.s

    // license that can be found in the LICENSE file.
    
    //go:build !plan9
    
    #include "go_asm.h"
    #include "textflag.h"
    
    // See memclrNoHeapPointers Go doc for important implementation constraints.
    
    // func memclrNoHeapPointers(ptr unsafe.Pointer, n uintptr)
    TEXT runtime·memclrNoHeapPointers(SB), NOSPLIT, $0-8
    	MOVL	ptr+0(FP), DI
    	MOVL	n+4(FP), BX
    	XORL	AX, AX
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Nov 06 10:24:44 UTC 2021
    - 2.4K 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/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)
  4. src/runtime/memclr_arm64.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)
    // Also called from assembly in sys_windows_arm64.s without g (but using Go stack convention).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 18 18:26:13 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. src/runtime/memclr_amd64.s

    // license that can be found in the LICENSE file.
    
    //go:build !plan9
    
    #include "go_asm.h"
    #include "textflag.h"
    #include "asm_amd64.h"
    
    // See memclrNoHeapPointers Go doc for important implementation constraints.
    
    // func memclrNoHeapPointers(ptr unsafe.Pointer, n uintptr)
    // ABIInternal for performance.
    TEXT runtime·memclrNoHeapPointers<ABIInternal>(SB), NOSPLIT, $0-16
    	// AX = ptr
    	// BX = n
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 10 20:52:34 UTC 2022
    - 4.9K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top