diff options
| author | Dmitriy Vyukov <dvyukov@google.com> | 2013-05-28 21:10:10 +0400 |
|---|---|---|
| committer | Dmitriy Vyukov <dvyukov@google.com> | 2013-05-28 21:10:10 +0400 |
| commit | 081129e286fcda2c9525dd08bd90ff6883df0698 (patch) | |
| tree | cf4796afa58ed6a03d82b5d46dd67b2f996e1d7d /src/pkg/runtime/proc.c | |
| parent | 4d6bfcf24504bb2de0bf63bf43ad703ba808a3e9 (diff) | |
| download | go-081129e286fcda2c9525dd08bd90ff6883df0698.tar.xz | |
runtime: allocate internal symbol table eagerly
we need it for GC anyway.
R=golang-dev, khr, dave, khr
CC=golang-dev
https://golang.org/cl/9728044
Diffstat (limited to 'src/pkg/runtime/proc.c')
| -rw-r--r-- | src/pkg/runtime/proc.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/pkg/runtime/proc.c b/src/pkg/runtime/proc.c index d6d308e524..7581b35d0b 100644 --- a/src/pkg/runtime/proc.c +++ b/src/pkg/runtime/proc.c @@ -133,10 +133,8 @@ runtime·schedinit(void) runtime·goargs(); runtime·goenvs(); - // For debugging: - // Allocate internal symbol table representation now, - // so that we don't need to call malloc when we crash. - // runtime·findfunc(0); + // Allocate internal symbol table representation now, we need it for GC anyway. + runtime·symtabinit(); runtime·sched.lastpoll = runtime·nanotime(); procs = 1; |
