]> Cypherpunks repositories - gostls13.git/commit
runtime: more graceful out-of-memory crash
authorRuss Cox <rsc@golang.org>
Tue, 26 Apr 2011 12:25:40 +0000 (08:25 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 26 Apr 2011 12:25:40 +0000 (08:25 -0400)
commite2f9c733918f08e07ce9557ed5124a8e6453fddb
tree3997644dd87660f4a64aff78349fe57c9c56d119
parentb1deb3be7f7ff9ec43b65b1adc25fdaf7dce56bb
runtime: more graceful out-of-memory crash

Used to fault trying to access l->list->next
when l->list == nil after MCentral_AllocList.
Now prints

runtime: out of memory: no room in arena for 65536-byte allocation (536870912 in use)
throw: out of memory

followed by stack trace.

Fixes #1650.

R=r, dfc
CC=golang-dev
https://golang.org/cl/4446062
src/pkg/runtime/mcache.c
src/pkg/runtime/mheap.c