Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 18 of 18 for memclrNoHeapPointers (0.34 sec)

  1. src/cmd/compile/internal/typecheck/builtin.go

    	{"panicunsafeslicenilptr", funcTag, 9},
    	{"unsafestringcheckptr", funcTag, 122},
    	{"panicunsafestringlen", funcTag, 9},
    	{"panicunsafestringnilptr", funcTag, 9},
    	{"memmove", funcTag, 123},
    	{"memclrNoHeapPointers", funcTag, 124},
    	{"memclrHasPointers", funcTag, 124},
    	{"memequal", funcTag, 125},
    	{"memequal0", funcTag, 126},
    	{"memequal8", funcTag, 126},
    	{"memequal16", funcTag, 126},
    	{"memequal32", funcTag, 126},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  2. src/runtime/map_faststr.go

    			k.str = nil
    			e := add(unsafe.Pointer(b), dataOffset+abi.MapBucketCount*2*goarch.PtrSize+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
    - 15.3K bytes
    - Viewed (0)
  3. src/runtime/HACKING.md

    If memory is not in a type-safe state, meaning it potentially contains
    "garbage" because it was just allocated and it is being initialized
    for first use, then it must be *zero-initialized* using
    `memclrNoHeapPointers` or non-pointer writes. This does not perform
    write barriers.
    
    If memory is already in a type-safe state and is simply being set to
    the zero value, this must be done using regular writes, `typedmemclr`,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  4. src/runtime/heapdump.go

    func mdump(m *MemStats) {
    	assertWorldStopped()
    
    	// make sure we're done sweeping
    	for _, s := range mheap_.allspans {
    		if s.state.get() == mSpanInUse {
    			s.ensureSwept()
    		}
    	}
    	memclrNoHeapPointers(unsafe.Pointer(&typecache), unsafe.Sizeof(typecache))
    	dwrite(unsafe.Pointer(&dumphdr[0]), uintptr(len(dumphdr)))
    	dumpparams()
    	dumpitabs()
    	dumpobjs()
    	dumpgs()
    	dumpms()
    	dumproots()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  5. src/runtime/arena.go

    	// are always fully cleared when reused.
    	h = h.pad(s, typ.Size_-typ.PtrBytes)
    	h.flush(s, uintptr(ptr), typ.Size_)
    
    	if typ.Kind_&abi.KindGCProg != 0 {
    		// Zero out temporary ptrmask buffer inside object.
    		memclrNoHeapPointers(ptr, (gcProgBits+7)/8)
    	}
    
    	// Update the PtrBytes value in the type information. After this
    	// point, the GC will observe the new bitmap.
    	s.largeType.PtrBytes = uintptr(ptr) - base + typ.PtrBytes
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:44:56 UTC 2024
    - 37.9K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/walk/assign.go

    	// hn := l2 * sizeof(elem(s))
    	hn := typecheck.Conv(ir.NewBinaryExpr(base.Pos, ir.OMUL, l2, ir.NewInt(base.Pos, elemtype.Size())), types.Types[types.TUINTPTR])
    
    	clrname := "memclrNoHeapPointers"
    	hasPointers := elemtype.HasPointers()
    	if hasPointers {
    		clrname = "memclrHasPointers"
    		ir.CurFunc.SetWBPos(n.Pos())
    	}
    
    	var clr ir.Nodes
    	clrfn := mkcall(clrname, nil, &clr, hp, hn)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:09:06 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  7. src/runtime/memmove_test.go

    				var ready atomic.Uint32
    				go func() {
    					sp := unsafe.Pointer(&src[0])
    					dp := unsafe.Pointer(&dst[0])
    					ready.Store(1)
    					for i := 0; i < 10000; i++ {
    						Memmove(dp, sp, sz)
    						MemclrNoHeapPointers(dp, sz)
    					}
    					ready.Store(2)
    				}()
    
    				for ready.Load() == 0 {
    					Gosched()
    				}
    
    				for ready.Load() != 2 {
    					for i := range dst {
    						p := dst[i]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 16:41:12 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  8. src/runtime/stack.go

    	n := stk.hi - stk.lo
    	if n&(n-1) != 0 {
    		throw("stack not a power of 2")
    	}
    	if stk.lo+n < stk.hi {
    		throw("bad stack size")
    	}
    	if stackDebug >= 1 {
    		println("stackfree", v, n)
    		memclrNoHeapPointers(v, n) // for testing, clobber stack data
    	}
    	if debug.efence != 0 || stackFromSystem != 0 {
    		if debug.efence != 0 || stackFaultOnFree != 0 {
    			sysFault(v, n)
    		} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 41.1K bytes
    - Viewed (0)
Back to top