Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for PtrBytes (0.34 sec)

  1. src/cmd/compile/internal/types/size.go

    		t.floatRegs = 2
    		t.setAlg(ACPLX128)
    
    	case TPTR:
    		w = int64(PtrSize)
    		t.intRegs = 1
    		CheckSize(t.Elem())
    		t.ptrBytes = int64(PtrSize) // See PtrDataSize
    
    	case TUNSAFEPTR:
    		w = int64(PtrSize)
    		t.intRegs = 1
    		t.ptrBytes = int64(PtrSize)
    
    	case TINTER: // implemented as 2 pointers
    		w = 2 * int64(PtrSize)
    		t.align = uint8(PtrSize)
    		t.intRegs = 2
    		expandiface(t)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 15K bytes
    - Viewed (0)
  2. src/runtime/mbarrier.go

    		// This always copies a full value of type typ so it's safe
    		// to pass typ along as an optimization. See the comment on
    		// bulkBarrierPreWrite.
    		bulkBarrierPreWrite(uintptr(dst), uintptr(src), typ.PtrBytes, typ)
    	}
    	// There's a race here: if some other goroutine can write to
    	// src, it may change some pointer in src after we've
    	// performed the write barrier but before we perform the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  3. src/runtime/arena.go

    	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)
  4. src/runtime/stkframe.go

    	}
    	methodValueCallFrameObjs[0] = stackObjectRecord{
    		off:       -int32(alignUp(abiRegArgsType.Size_, 8)), // It's always the highest address local.
    		size:      int32(abiRegArgsType.Size_),
    		_ptrdata:  int32(abiRegArgsType.PtrBytes),
    		gcdataoff: uint32(uintptr(unsafe.Pointer(abiRegArgsType.GCData)) - mod.rodata),
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:10:48 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  5. src/internal/abi/type.go

    // or the functions in compiletype.go to access this type instead.
    // (TODO: this admonition applies to every type in this package.
    // Put it in some shared location?)
    type Type struct {
    	Size_       uintptr
    	PtrBytes    uintptr // number of (prefix) bytes in the type that can contain pointers
    	Hash        uint32  // hash of type; avoids computation in hash tables
    	TFlag       TFlag   // extra type information flags
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 21:09:59 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  6. src/runtime/slice.go

    			// from and to only ever refer to memory representing whole values of
    			// type et. See the comment on bulkBarrierPreWrite.
    			bulkBarrierPreWriteSrcOnly(uintptr(p), uintptr(oldPtr), lenmem-et.Size_+et.PtrBytes, et)
    		}
    	}
    	memmove(p, oldPtr, lenmem)
    
    	return slice{p, newLen, newcap}
    }
    
    // nextslicecap computes the next appropriate slice length.
    func nextslicecap(newLen, oldCap int) int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  7. src/runtime/heapdump.go

    		dwrite(unsafe.Pointer(unsafe.StringData(pkgpath)), uintptr(len(pkgpath)))
    		dwritebyte('.')
    		dwrite(unsafe.Pointer(unsafe.StringData(name)), uintptr(len(name)))
    	}
    	dumpbool(t.Kind_&abi.KindDirectIface == 0 || t.PtrBytes != 0)
    }
    
    // dump an object.
    func dumpobj(obj unsafe.Pointer, size uintptr, bv bitvector) {
    	dumpint(tagObject)
    	dumpint(uint64(uintptr(obj)))
    	dumpmemrange(obj, size)
    	dumpfields(bv)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 17.6K bytes
    - Viewed (0)
Back to top