• Russ Cox's avatar
    runtime: allow use of >512 MB on 32-bit platforms · 70b0de8e
    Russ Cox authored
    runtime: memory allocated by OS not in usable range
    runtime: out of memory: cannot allocate 1114112-byte block (2138832896 in use)
    throw: out of memory
    
    runtime.throw+0x40 /Users/rsc/g/go/src/pkg/runtime/runtime.c:102
            runtime.throw(0x1fffd, 0x101)
    runtime.mallocgc+0x2af /Users/rsc/g/go/src/pkg/runtime/malloc.c:60
            runtime.mallocgc(0x100004, 0x0, 0x1, 0x1, 0xc093, ...)
    runtime.mal+0x40 /Users/rsc/g/go/src/pkg/runtime/malloc.c:289
            runtime.mal(0x100004, 0x20bc4)
    runtime.new+0x26 /Users/rsc/g/go/src/pkg/runtime/malloc.c:296
            runtime.new(0x100004, 0x8fe84000, 0x20bc4)
    main.main+0x29 /Users/rsc/x.go:11
            main.main()
    runtime.mainstart+0xf /Users/rsc/g/go/src/pkg/runtime/386/asm.s:93
            runtime.mainstart()
    runtime.goexit /Users/rsc/g/go/src/pkg/runtime/proc.c:178
            runtime.goexit()
    ----- goroutine created by -----
    _rt0_386+0xbf /Users/rsc/g/go/src/pkg/runtime/386/asm.s:80
    
    R=iant, r
    CC=golang-dev
    https://golang.org/cl/4444073
    70b0de8e
mheap.c 9.55 KB