]> Cypherpunks repositories - gostls13.git/commit
runtime: preallocate panic errors for index and slice
authorRuss Cox <rsc@golang.org>
Sat, 30 Aug 2014 18:18:41 +0000 (14:18 -0400)
committerRuss Cox <rsc@golang.org>
Sat, 30 Aug 2014 18:18:41 +0000 (14:18 -0400)
commit7006aafdcd3be55d13e987dc9008425111bc7850
tree5b563d28f8504cc2099282908492414bd2e4106c
parent47d6af2f68d43d496f7155d705f269b126f8f108
runtime: preallocate panic errors for index and slice

This avoids allocating at the panic sites.

LGTM=r, khr
R=golang-codereviews, r, khr
CC=dvyukov, golang-codereviews, iant, khr
https://golang.org/cl/136020043
src/pkg/runtime/panic.go