]> Cypherpunks repositories - gostls13.git/commit
runtime: allow use of >512 MB on 32-bit platforms
authorRuss Cox <rsc@golang.org>
Thu, 28 Apr 2011 03:20:53 +0000 (23:20 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 28 Apr 2011 03:20:53 +0000 (23:20 -0400)
commit70b0de8e981efbe6e37d60df430c9077db9bda7a
treed68256b0e2741ade09bf4681d9c5b5097f869066
parent33ca16d616c93510b15e64c377d79112fae7c2f7
runtime: allow use of >512 MB on 32-bit platforms

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
src/pkg/runtime/malloc.goc
src/pkg/runtime/mheap.c