- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 383 for stksize (0.17 sec)
-
src/runtime/os_freebsd.go
if miblen == 0 { return 1 } // Query kern.smp.maxcpus. dstsize := uintptr(4) maxcpus := uint32(0) if sysctl(&mib[0], miblen, (*byte)(unsafe.Pointer(&maxcpus)), &dstsize, nil, 0) != 0 { return 1 } maskSize := int(maxcpus+7) / 8 if maskSize < goarch.PtrSize { maskSize = goarch.PtrSize } if maskSize > len(mask) { maskSize = len(mask) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 05 20:34:30 UTC 2023 - 11.6K bytes - Viewed (0) -
src/cmd/link/internal/ld/inittask.go
sh := ldr.Lookup("runtime.runtime_inittasks", 0) sb := ldr.MakeSymbolUpdater(sh) sb.SetSize(0) sb.SetType(sym.SNOPTRDATA) // Could be SRODATA, but see issue 58857. sb.AddAddr(ctxt.Arch, t) sb.AddUint(ctxt.Arch, uint64(ldr.SymSize(t)/int64(ctxt.Arch.PtrSize))) sb.AddUint(ctxt.Arch, uint64(ldr.SymSize(t)/int64(ctxt.Arch.PtrSize))) } } // inittaskSym builds a symbol containing pointers to all the inittasks
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 30 20:09:45 UTC 2024 - 6.2K bytes - Viewed (0) -
src/cmd/link/internal/loader/symbolbuilder.go
return sb.setUintXX(arch, r, v, int64(arch.PtrSize)) } func (sb *SymbolBuilder) SetUintptr(arch *sys.Arch, r int64, v uintptr) int64 { return sb.setUintXX(arch, r, uint64(v), int64(arch.PtrSize)) } func (sb *SymbolBuilder) SetAddrPlus(arch *sys.Arch, off int64, tgt Sym, add int64) int64 { if sb.Type() == 0 { sb.SetType(sym.SDATA) } if off+int64(arch.PtrSize) > sb.size { sb.size = off + int64(arch.PtrSize)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 08 15:25:19 UTC 2023 - 13.9K bytes - Viewed (0) -
src/internal/abi/compiletype.go
// CommonSize returns sizeof(Type) for a compilation target with a given ptrSize func CommonSize(ptrSize int) int { return 4*ptrSize + 8 + 8 } // StructFieldSize returns sizeof(StructField) for a compilation target with a given ptrSize func StructFieldSize(ptrSize int) int { return 3 * ptrSize } // UncommonSize returns sizeof(UncommonType). This currently does not depend on ptrSize.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 08 03:01:24 UTC 2024 - 1.3K bytes - Viewed (0) -
src/internal/coverage/encodemeta/encodefile.go
mhsz := uint64(unsafe.Sizeof(coverage.MetaFileHeader{})) stSize := m.stab.Size() stOffset := mhsz + uint64(16*len(blobs)) preambleLength := stOffset + uint64(stSize) if m.debug { fmt.Fprintf(os.Stderr, "=+= sizeof(MetaFileHeader)=%d\n", mhsz) fmt.Fprintf(os.Stderr, "=+= preambleLength=%d stSize=%d\n", preambleLength, stSize) } // Compute total size tlen := preambleLength
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 11 12:40:42 UTC 2022 - 3.4K bytes - Viewed (0) -
src/internal/abi/abi_test.s
#include "textflag.h" #ifdef GOARCH_386 #define PTRSIZE 4 #endif #ifdef GOARCH_arm #define PTRSIZE 4 #endif #ifdef GOARCH_mips #define PTRSIZE 4 #endif #ifdef GOARCH_mipsle #define PTRSIZE 4 #endif #ifndef PTRSIZE #define PTRSIZE 8 #endif TEXT internal∕abi·FuncPCTestFn(SB),NOSPLIT,$0-0 RET GLOBL internal∕abi·FuncPCTestFnAddr(SB), NOPTR, $PTRSIZE
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 23 21:05:39 UTC 2021 - 603 bytes - Viewed (0) -
src/cmd/link/internal/ld/data_test.go
bm: "pie", lm: "internal", rel: ".rel", relsize: 2 * sys.Arch386.PtrSize, gotsize: sys.Arch386.PtrSize, }, { arch: sys.ArchAMD64, ht: objabi.Hlinux, bm: "pie", lm: "internal", rel: ".rela", relsize: 3 * sys.ArchAMD64.PtrSize, gotsize: sys.ArchAMD64.PtrSize, }, { arch: sys.ArchAMD64, ht: objabi.Hdarwin, bm: "pie",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 05 19:20:01 UTC 2023 - 2.3K bytes - Viewed (0) -
src/cmd/link/internal/ld/decodesym.go
return abi.Kind(p[2*arch.PtrSize+7])&abi.KindGCProg != 0 // 0x13 / 0x1f } // Type.commonType.size func decodetypeSize(arch *sys.Arch, p []byte) int64 { return int64(decodeInuxi(arch, p, arch.PtrSize)) // 0x8 / 0x10 } // Type.commonType.ptrdata func decodetypePtrdata(arch *sys.Arch, p []byte) int64 { return int64(decodeInuxi(arch, p[arch.PtrSize:], arch.PtrSize)) // 0x8 / 0x10 } // Type.commonType.tflag
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 16:25:18 UTC 2024 - 9.9K bytes - Viewed (0) -
src/cmd/internal/sys/arch.go
Wasm ) // Arch represents an individual architecture. type Arch struct { Name string Family ArchFamily ByteOrder binary.ByteOrder // PtrSize is the size in bytes of pointers and the // predeclared "int", "uint", and "uintptr" types. PtrSize int // RegSize is the size in bytes of general purpose registers. RegSize int // MinLC is the minimum length of an instruction code. MinLC int
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 13 19:51:03 UTC 2022 - 6.2K bytes - Viewed (0) -
src/cmd/compile/internal/types/universe.go
} func InitTypes(defTypeName func(sym *Sym, typ *Type) Object) { if PtrSize == 0 { base.Fatalf("InitTypes called before PtrSize was set") } SlicePtrOffset = 0 SliceLenOffset = RoundUp(SlicePtrOffset+int64(PtrSize), int64(PtrSize)) SliceCapOffset = RoundUp(SliceLenOffset+int64(PtrSize), int64(PtrSize)) SliceSize = RoundUp(SliceCapOffset+int64(PtrSize), int64(PtrSize)) // string is same as slice wo the cap
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 26 21:56:49 UTC 2023 - 4K bytes - Viewed (0)