internal/abi.Type.Size_ (field)
299 uses
internal/abi (current package)
type.go#L21: Size_ uintptr
type.go#L440: func (t *Type) Size() uintptr { return t.Size_ }
internal/runtime/maps
map.go#L867: if err := mapKeyError2(a.Elem, unsafe.Pointer(uintptr(p)+i*a.Elem.Size_)); err != nil {
runtime.go#L64: msan.Read(key, typ.Key.Size_)
runtime.go#L67: asan.Read(key, typ.Key.Size_)
runtime.go#L139: msan.Read(key, typ.Key.Size_)
runtime.go#L142: asan.Read(key, typ.Key.Size_)
runtime.go#L217: msan.Read(key, typ.Key.Size_)
runtime.go#L220: asan.Read(key, typ.Key.Size_)
table_debug.go#L50: dump(key, typ.Key.Size_)
table_debug.go#L113: dump(g.key(typ, j), typ.Key.Size_)
table_debug.go#L116: dump(g.elem(typ, j), typ.Elem.Size_)
reflect
map.go#L79: if ktyp.Size_ > abi.MapMaxKeyBytes {
map.go#L82: if etyp.Size_ > abi.MapMaxKeyBytes {
type.go#L619: return int(t.t.Size_) * 8
type.go#L1852: if typ.Size_ >= 1<<16 {
type.go#L2135: words := typ.Size_ / goarch.PtrSize
type.go#L2435: size = offset + ft.Size_
type.go#L2441: if ft.Size_ == 0 {
type.go#L2563: typ.Size_ = size
type.go#L2600: case typ.Size_ == goarch.PtrSize && typ.PtrBytes == goarch.PtrSize:
type.go#L2706: if typ.Size_ > 0 {
type.go#L2707: max := ^uintptr(0) / typ.Size_
type.go#L2712: array.Size_ = typ.Size_ * uintptr(length)
type.go#L2714: array.PtrBytes = typ.Size_*uintptr(length-1) + typ.PtrBytes
type.go#L2769: case array.Size_ == goarch.PtrSize && array.PtrBytes == goarch.PtrSize:
type.go#L2855: Size_: align(abid.retOffset+abid.ret.stackBytes, goarch.PtrSize),
type.go#L2928: addTypeBits(bv, offset+uintptr(i)*tt.Elem.Size_, tt.Elem)
runtime
alg.go#L218: switch t.Size_ {
alg.go#L224: return memhash(p, h, t.Size_)
alg.go#L247: h = typehash(a.Elem, add(p, i*a.Elem.Size_), h)
arena.go#L450: size := typ.Size_
arena.go#L516: c.scanAlloc += size - (typ.Size_ - typ.PtrBytes)
arena.go#L540: mem, overflow := math.MulUintptr(typ.Size_, uintptr(n))
arena.go#L545: userArenaHeapBitsSetType(typ, add(ptr, uintptr(i)*typ.Size_), s)
arena.go#L579: h = h.pad(s, typ.Size_-typ.PtrBytes)
arena.go#L580: h.flush(s, uintptr(ptr), typ.Size_)
arena.go#L589: doubleCheckHeapPointersInterior(uintptr(ptr), uintptr(ptr), typ.Size_, typ.Size_, typ, &s.largeType, s)
arena.go#L1127: s.largeType.Size_ = s.elemsize
cgocall.go#L653: p = add(p, at.Elem.Size_)
cgocall.go#L702: p = add(p, st.Elem.Size_)
cgocheck.go#L80: cgoCheckMemmove2(typ, dst, src, 0, typ.Size_)
cgocheck.go#L124: cgoCheckTypedBlock(typ, p, 0, typ.Size_)
cgocheck.go#L125: p = add(p, typ.Size_)
chan.go#L79: if elem.Size_ >= 1<<16 {
chan.go#L86: mem, overflow := math.MulUintptr(elem.Size_, uintptr(size))
chan.go#L113: c.elemsize = uint16(elem.Size_)
chan.go#L122: print("makechan: chan=", c, "; elemsize=", elem.Size_, "; dataqsiz=", size, "\n")
chan.go#L399: typeBitsBulkBarrier(t, uintptr(dst), uintptr(src), t.Size_)
chan.go#L402: memmove(dst, src, t.Size_)
chan.go#L410: typeBitsBulkBarrier(t, uintptr(dst), uintptr(src), t.Size_)
chan.go#L411: memmove(dst, src, t.Size_)
checkptr.go#L25: if checkptrStraddles(p, n*elem.Size_) {
heapdump.go#L197: dumpint(uint64(t.Size_))
iface.go#L339: msanread(v, t.Size_)
iface.go#L342: asanread(v, t.Size_)
iface.go#L344: x := mallocgc(t.Size_, t, true)
iface.go#L354: msanread(v, t.Size_)
iface.go#L357: asanread(v, t.Size_)
iface.go#L360: x := mallocgc(t.Size_, t, false)
iface.go#L361: memmove(x, v, t.Size_)
malloc.go#L2157: return mallocgc(typ.Size_, typ, true)
malloc.go#L2178: return mallocgc(typ.Size_, typ, true)
malloc.go#L2183: return mallocgc(typ.Size_, typ, true)
malloc.go#L2201: return mallocgc(typ.Size_, typ, true)
malloc.go#L2203: mem, overflow := math.MulUintptr(typ.Size_, uintptr(n))
malloc_generated.go#L89: if typ.Size_ == goarch.PtrSize {
malloc_generated.go#L93: if doubleCheckHeapSetType && !asanenabled && dataSize%typ.Size_ != 0 {
malloc_generated.go#L96: for i := typ.Size_; i < dataSize; i += typ.Size_ {
malloc_generated.go#L98: scanSize += typ.Size_
malloc_generated.go#L254: if typ.Size_ == goarch.PtrSize {
malloc_generated.go#L258: if doubleCheckHeapSetType && !asanenabled && dataSize%typ.Size_ != 0 {
malloc_generated.go#L261: for i := typ.Size_; i < dataSize; i += typ.Size_ {
malloc_generated.go#L263: scanSize += typ.Size_
malloc_generated.go#L419: if typ.Size_ == goarch.PtrSize {
malloc_generated.go#L423: if doubleCheckHeapSetType && !asanenabled && dataSize%typ.Size_ != 0 {
malloc_generated.go#L426: for i := typ.Size_; i < dataSize; i += typ.Size_ {
malloc_generated.go#L428: scanSize += typ.Size_
malloc_generated.go#L584: if typ.Size_ == goarch.PtrSize {
malloc_generated.go#L588: if doubleCheckHeapSetType && !asanenabled && dataSize%typ.Size_ != 0 {
malloc_generated.go#L591: for i := typ.Size_; i < dataSize; i += typ.Size_ {
malloc_generated.go#L593: scanSize += typ.Size_
malloc_generated.go#L749: if typ.Size_ == goarch.PtrSize {
malloc_generated.go#L753: if doubleCheckHeapSetType && !asanenabled && dataSize%typ.Size_ != 0 {
malloc_generated.go#L756: for i := typ.Size_; i < dataSize; i += typ.Size_ {
malloc_generated.go#L758: scanSize += typ.Size_
malloc_generated.go#L914: if typ.Size_ == goarch.PtrSize {
malloc_generated.go#L918: if doubleCheckHeapSetType && !asanenabled && dataSize%typ.Size_ != 0 {
malloc_generated.go#L921: for i := typ.Size_; i < dataSize; i += typ.Size_ {
malloc_generated.go#L923: scanSize += typ.Size_
malloc_generated.go#L1079: if typ.Size_ == goarch.PtrSize {
malloc_generated.go#L1083: if doubleCheckHeapSetType && !asanenabled && dataSize%typ.Size_ != 0 {
malloc_generated.go#L1086: for i := typ.Size_; i < dataSize; i += typ.Size_ {
malloc_generated.go#L1088: scanSize += typ.Size_
malloc_generated.go#L1244: if typ.Size_ == goarch.PtrSize {
malloc_generated.go#L1248: if doubleCheckHeapSetType && !asanenabled && dataSize%typ.Size_ != 0 {
malloc_generated.go#L1251: for i := typ.Size_; i < dataSize; i += typ.Size_ {
malloc_generated.go#L1253: scanSize += typ.Size_
malloc_generated.go#L1409: if typ.Size_ == goarch.PtrSize {
malloc_generated.go#L1413: if doubleCheckHeapSetType && !asanenabled && dataSize%typ.Size_ != 0 {
malloc_generated.go#L1416: for i := typ.Size_; i < dataSize; i += typ.Size_ {
malloc_generated.go#L1418: scanSize += typ.Size_
malloc_generated.go#L1574: if typ.Size_ == goarch.PtrSize {
malloc_generated.go#L1578: if doubleCheckHeapSetType && !asanenabled && dataSize%typ.Size_ != 0 {
malloc_generated.go#L1581: for i := typ.Size_; i < dataSize; i += typ.Size_ {
malloc_generated.go#L1583: scanSize += typ.Size_
malloc_generated.go#L1739: if typ.Size_ == goarch.PtrSize {
malloc_generated.go#L1743: if doubleCheckHeapSetType && !asanenabled && dataSize%typ.Size_ != 0 {
malloc_generated.go#L1746: for i := typ.Size_; i < dataSize; i += typ.Size_ {
malloc_generated.go#L1748: scanSize += typ.Size_
malloc_generated.go#L1904: if typ.Size_ == goarch.PtrSize {
malloc_generated.go#L1908: if doubleCheckHeapSetType && !asanenabled && dataSize%typ.Size_ != 0 {
malloc_generated.go#L1911: for i := typ.Size_; i < dataSize; i += typ.Size_ {
malloc_generated.go#L1913: scanSize += typ.Size_
malloc_generated.go#L2069: if typ.Size_ == goarch.PtrSize {
malloc_generated.go#L2073: if doubleCheckHeapSetType && !asanenabled && dataSize%typ.Size_ != 0 {
malloc_generated.go#L2076: for i := typ.Size_; i < dataSize; i += typ.Size_ {
malloc_generated.go#L2078: scanSize += typ.Size_
malloc_generated.go#L2234: if typ.Size_ == goarch.PtrSize {
malloc_generated.go#L2238: if doubleCheckHeapSetType && !asanenabled && dataSize%typ.Size_ != 0 {
malloc_generated.go#L2241: for i := typ.Size_; i < dataSize; i += typ.Size_ {
malloc_generated.go#L2243: scanSize += typ.Size_
malloc_generated.go#L2399: if typ.Size_ == goarch.PtrSize {
malloc_generated.go#L2403: if doubleCheckHeapSetType && !asanenabled && dataSize%typ.Size_ != 0 {
malloc_generated.go#L2406: for i := typ.Size_; i < dataSize; i += typ.Size_ {
malloc_generated.go#L2408: scanSize += typ.Size_
malloc_generated.go#L2564: if typ.Size_ == goarch.PtrSize {
malloc_generated.go#L2568: if doubleCheckHeapSetType && !asanenabled && dataSize%typ.Size_ != 0 {
malloc_generated.go#L2571: for i := typ.Size_; i < dataSize; i += typ.Size_ {
malloc_generated.go#L2573: scanSize += typ.Size_
malloc_generated.go#L2729: if typ.Size_ == goarch.PtrSize {
malloc_generated.go#L2733: if doubleCheckHeapSetType && !asanenabled && dataSize%typ.Size_ != 0 {
malloc_generated.go#L2736: for i := typ.Size_; i < dataSize; i += typ.Size_ {
malloc_generated.go#L2738: scanSize += typ.Size_
malloc_generated.go#L2894: if typ.Size_ == goarch.PtrSize {
malloc_generated.go#L2898: if doubleCheckHeapSetType && !asanenabled && dataSize%typ.Size_ != 0 {
malloc_generated.go#L2901: for i := typ.Size_; i < dataSize; i += typ.Size_ {
malloc_generated.go#L2903: scanSize += typ.Size_
malloc_generated.go#L3059: if typ.Size_ == goarch.PtrSize {
malloc_generated.go#L3063: if doubleCheckHeapSetType && !asanenabled && dataSize%typ.Size_ != 0 {
malloc_generated.go#L3066: for i := typ.Size_; i < dataSize; i += typ.Size_ {
malloc_generated.go#L3068: scanSize += typ.Size_
malloc_generated.go#L3224: if typ.Size_ == goarch.PtrSize {
malloc_generated.go#L3228: if doubleCheckHeapSetType && !asanenabled && dataSize%typ.Size_ != 0 {
malloc_generated.go#L3231: for i := typ.Size_; i < dataSize; i += typ.Size_ {
malloc_generated.go#L3233: scanSize += typ.Size_
malloc_generated.go#L3389: if typ.Size_ == goarch.PtrSize {
malloc_generated.go#L3393: if doubleCheckHeapSetType && !asanenabled && dataSize%typ.Size_ != 0 {
malloc_generated.go#L3396: for i := typ.Size_; i < dataSize; i += typ.Size_ {
malloc_generated.go#L3398: scanSize += typ.Size_
malloc_generated.go#L3554: if typ.Size_ == goarch.PtrSize {
malloc_generated.go#L3558: if doubleCheckHeapSetType && !asanenabled && dataSize%typ.Size_ != 0 {
malloc_generated.go#L3561: for i := typ.Size_; i < dataSize; i += typ.Size_ {
malloc_generated.go#L3563: scanSize += typ.Size_
malloc_generated.go#L3719: if typ.Size_ == goarch.PtrSize {
malloc_generated.go#L3723: if doubleCheckHeapSetType && !asanenabled && dataSize%typ.Size_ != 0 {
malloc_generated.go#L3726: for i := typ.Size_; i < dataSize; i += typ.Size_ {
malloc_generated.go#L3728: scanSize += typ.Size_
malloc_generated.go#L3884: if typ.Size_ == goarch.PtrSize {
malloc_generated.go#L3888: if doubleCheckHeapSetType && !asanenabled && dataSize%typ.Size_ != 0 {
malloc_generated.go#L3891: for i := typ.Size_; i < dataSize; i += typ.Size_ {
malloc_generated.go#L3893: scanSize += typ.Size_
malloc_generated.go#L4049: if typ.Size_ == goarch.PtrSize {
malloc_generated.go#L4053: if doubleCheckHeapSetType && !asanenabled && dataSize%typ.Size_ != 0 {
malloc_generated.go#L4056: for i := typ.Size_; i < dataSize; i += typ.Size_ {
malloc_generated.go#L4058: scanSize += typ.Size_
malloc_generated.go#L4214: if typ.Size_ == goarch.PtrSize {
malloc_generated.go#L4218: if doubleCheckHeapSetType && !asanenabled && dataSize%typ.Size_ != 0 {
malloc_generated.go#L4221: for i := typ.Size_; i < dataSize; i += typ.Size_ {
malloc_generated.go#L4223: scanSize += typ.Size_
malloc_stubs.go#L577: if typ.Size_ == goarch.PtrSize {
malloc_stubs.go#L583: if doubleCheckHeapSetType && !asanenabled && dataSize%typ.Size_ != 0 {
malloc_stubs.go#L586: for i := typ.Size_; i < dataSize; i += typ.Size_ {
malloc_stubs.go#L588: scanSize += typ.Size_
malloc_stubs.go#L634: print("runtime: dataSize=", dataSize, " typ.Size_=", typ.Size_, " typ.PtrBytes=", typ.PtrBytes, "\n")
map.go#L143: msanread(key, t.Key.Size_)
map.go#L146: asanread(key, t.Key.Size_)
mbarrier.go#L167: memmove(dst, src, typ.Size_)
mbarrier.go#L169: cgoCheckMemmove2(typ, dst, src, 0, typ.Size_)
mbarrier.go#L219: msanwrite(dst, typ.Size_)
mbarrier.go#L220: msanread(src, typ.Size_)
mbarrier.go#L223: asanwrite(dst, typ.Size_)
mbarrier.go#L224: asanread(src, typ.Size_)
mbarrier.go#L292: racewriterangepc(dstPtr, uintptr(n)*typ.Size_, callerpc, pc)
mbarrier.go#L293: racereadrangepc(srcPtr, uintptr(n)*typ.Size_, callerpc, pc)
mbarrier.go#L296: msanwrite(dstPtr, uintptr(n)*typ.Size_)
mbarrier.go#L297: msanread(srcPtr, uintptr(n)*typ.Size_)
mbarrier.go#L300: asanwrite(dstPtr, uintptr(n)*typ.Size_)
mbarrier.go#L301: asanread(srcPtr, uintptr(n)*typ.Size_)
mbarrier.go#L316: size := uintptr(n) * typ.Size_
mbarrier.go#L321: pwsize := size - typ.Size_ + typ.PtrBytes
mbarrier.go#L345: return slicecopy(dst.array, dst.len, src.array, src.len, elemType.Size_)
mbarrier.go#L368: memclrNoHeapPointers(ptr, typ.Size_)
mbarrier.go#L403: size := typ.Size_ * uintptr(len)
mbitmap.go#L256: tp.elem += tp.typ.Size_
mbitmap.go#L303: if n >= tp.typ.Size_ {
mbitmap.go#L307: tp.elem += (tp.addr - tp.elem + n) / tp.typ.Size_ * tp.typ.Size_
mbitmap.go#L316: tp.elem += tp.typ.Size_
mbitmap.go#L631: if typ.Size_ == goarch.PtrSize {
mbitmap.go#L637: if doubleCheckHeapSetType && !asanenabled && dataSize%typ.Size_ != 0 {
mbitmap.go#L640: for i := typ.Size_; i < dataSize; i += typ.Size_ {
mbitmap.go#L642: scanSize += typ.Size_
mbitmap.go#L678: print("runtime: dataSize=", dataSize, " typ.Size_=", typ.Size_, " typ.PtrBytes=", typ.PtrBytes, "\n")
mbitmap.go#L824: size = (size + gctyp.Size_ - 1) / gctyp.Size_ * gctyp.Size_
mbitmap.go#L843: off := i % typ.Size_
mbitmap.go#L869: print("runtime: hasHeader=", header != nil, " typ.Size_=", typ.Size_, " TFlagGCMaskOnDemaind=", typ.TFlag&abi.TFlagGCMaskOnDemand != 0, "\n")
mbitmap.go#L900: off := i % typ.Size_
mbitmap.go#L927: print("runtime: hasHeader=", header != nil, " typ.Size_=", typ.Size_, "\n")
mbitmap.go#L948: off := i % typ.Size_
mbitmap.go#L1466: if typ.Size_ != size {
mbitmap.go#L1467: println("runtime: typeBitsBulkBarrier with type ", toRType(typ).string(), " of size ", typ.Size_, " but memory size", size)
mbitmap.go#L1831: n := et.Size_
mbitmap.go#L1843: n := et.Size_
mbitmap.go#L1961: n := (*ptrtype)(unsafe.Pointer(t)).Elem.Size_
mfinal.go#L473: if ot.Elem == nil || ot.Elem.Pointers() || ot.Elem.Size_ >= maxTinySize {
mfinal.go#L529: nret = alignUp(nret, uintptr(t.Align_)) + t.Size_
select.go#L430: msanread(cas.elem, c.elemtype.Size_)
select.go#L432: msanwrite(cas.elem, c.elemtype.Size_)
select.go#L437: asanread(cas.elem, c.elemtype.Size_)
select.go#L439: asanwrite(cas.elem, c.elemtype.Size_)
select.go#L455: msanwrite(cas.elem, c.elemtype.Size_)
select.go#L458: asanwrite(cas.elem, c.elemtype.Size_)
select.go#L481: msanread(cas.elem, c.elemtype.Size_)
select.go#L484: asanread(cas.elem, c.elemtype.Size_)
select.go#L522: msanread(cas.elem, c.elemtype.Size_)
select.go#L525: asanread(cas.elem, c.elemtype.Size_)
slice.go#L43: tomem, overflow = math.MulUintptr(et.Size_, uintptr(tolen))
slice.go#L47: copymem = et.Size_ * uintptr(fromlen)
slice.go#L52: tomem = et.Size_ * uintptr(tolen)
slice.go#L103: mem, overflow := math.MulUintptr(et.Size_, uintptr(cap))
slice.go#L110: mem, overflow := math.MulUintptr(et.Size_, uintptr(len))
slice.go#L182: racereadrangepc(oldPtr, uintptr(oldLen*int(et.Size_)), callerpc, abi.FuncPCABIInternal(growslice))
slice.go#L185: msanread(oldPtr, uintptr(oldLen*int(et.Size_)))
slice.go#L188: asanread(oldPtr, uintptr(oldLen*int(et.Size_)))
slice.go#L195: if et.Size_ == 0 {
slice.go#L211: case et.Size_ == 1:
slice.go#L217: case et.Size_ == goarch.PtrSize:
slice.go#L223: case isPowerOfTwo(et.Size_):
slice.go#L227: shift = uintptr(sys.TrailingZeros64(uint64(et.Size_))) & 63
slice.go#L229: shift = uintptr(sys.TrailingZeros32(uint32(et.Size_))) & 31
slice.go#L238: lenmem = uintptr(oldLen) * et.Size_
slice.go#L239: newlenmem = uintptr(newLen) * et.Size_
slice.go#L240: capmem, overflow = math.MulUintptr(et.Size_, uintptr(newcap))
slice.go#L242: newcap = int(capmem / et.Size_)
slice.go#L243: capmem = uintptr(newcap) * et.Size_
slice.go#L281: bulkBarrierPreWriteSrcOnly(uintptr(p), uintptr(oldPtr), lenmem-et.Size_+et.PtrBytes, et)
slice.go#L319: freegc(oldPtr, uintptr(oldCap)*et.Size_, noscan)
slice.go#L379: oldcapmem := uintptr(old.cap) * et.Size_
slice.go#L380: newlenmem := uintptr(new.len) * et.Size_
slice.go#L449: capmem := uintptr(cap) * et.Size_
slice.go#L481: lenmem := uintptr(len) * et.Size_
slice.go#L486: return new, len, int(capmem / et.Size_)
slice.go#L518: memmove(bufPtr, oldPtr, uintptr(oldLen)*et.Size_)
slice.go#L530: newCap := int(roundupsize(uintptr(newLen)*et.Size_, !et.Pointers()) / et.Size_)
slice.go#L538: memclrNoHeapPointers(add(bufPtr, uintptr(newLen)*et.Size_), uintptr(newCap-newLen)*et.Size_)
slice.go#L558: freegc(oldPtr, uintptr(oldCap)*et.Size_, noscan)
stkframe.go#L281: off: -int32(alignUp(abiRegArgsType.Size_, 8)), // It's always the highest address local.
stkframe.go#L282: size: int32(abiRegArgsType.Size_),
type.go#L230: dst = dst.offset(e.Size_ / goarch.PtrSize)
type.go#L240: if ft.Size_ > t.Size_/2 {
unsafe.go#L59: if et.Size_ == 0 {
unsafe.go#L65: mem, overflow := math.MulUintptr(et.Size_, uintptr(len))
unsafe.go#L88: if checkptrStraddles(ptr, uintptr(len64)*et.Size_) {
 |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |