]> Cypherpunks repositories - gostls13.git/commit
runtime: avoid malloc during malloc
authorRuss Cox <rsc@golang.org>
Tue, 21 Feb 2012 21:36:15 +0000 (16:36 -0500)
committerRuss Cox <rsc@golang.org>
Tue, 21 Feb 2012 21:36:15 +0000 (16:36 -0500)
commitfc7ed45b35d24d6d67720e5085c083041a8dd30e
tree7756ca497e3bcfeaf42ec8461915959b3e0226aa
parentd86213c3718c300bf1638ab15b0b361212fe68a8
runtime: avoid malloc during malloc

A fault during malloc might lead to the program's
first call to findfunc, which would in turn call malloc.
Don't do that.

Fixes #1777.

R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5689047
src/pkg/runtime/symtab.c