const runtime.maxAlloc
16 uses
runtime (current package)
chan.go#L83: if overflow || mem > maxAlloc-hchanSize || size < 0 {
malloc.go#L217: maxAlloc = (1 << heapAddrBits) - (1-_64bit)*1
malloc.go#L1196: if overflow || mem > maxAlloc || n < 0 {
map.go#L305: if overflow || mem > maxAlloc {
slice.go#L41: if overflow || tomem > maxAlloc || tolen < 0 {
slice.go#L85: if overflow || mem > maxAlloc || len < 0 || len > cap {
slice.go#L92: if overflow || mem > maxAlloc || len < 0 {
slice.go#L176: overflow = uintptr(newcap) > maxAlloc
slice.go#L182: overflow = uintptr(newcap) > maxAlloc/sys.PtrSize
slice.go#L195: overflow = uintptr(newcap) > (maxAlloc >> shift)
slice.go#L218: if overflow || capmem > maxAlloc {
string.go#L287: if uintptr(size) > maxAlloc/4 {
string.go#L306: if n < 0 || uintptr(n) > maxAlloc {
string.go#L414: p := (*[maxAlloc/2 - 1]byte)(unsafe.Pointer(s))
string.go#L452: p := (*[maxAlloc/2/2 - 1]uint16)(unsafe.Pointer(s))
string.go#L469: str := (*[maxAlloc/2/2 - 1]uint16)(unsafe.Pointer(strw))
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin 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 @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |