diff options
| author | Dmitriy Vyukov <dvyukov@google.com> | 2014-05-02 17:39:25 +0100 |
|---|---|---|
| committer | Dmitriy Vyukov <dvyukov@google.com> | 2014-05-02 17:39:25 +0100 |
| commit | 8afa086ce67b44abb9c9639efca214db7acf7b3f (patch) | |
| tree | 0ef03554b60d166ee6590f72ee887d245249b9d9 /src/cmd/api | |
| parent | 350a8fcde14e936a4af33560b5365b18e822477a (diff) | |
| download | go-8afa086ce67b44abb9c9639efca214db7acf7b3f.tar.xz | |
runtime: do not set m->locks around memory allocation
If slice append is the only place where a program allocates,
then it will consume all available memory w/o triggering GC.
This was demonstrated in the issue.
Fixes #7922.
LGTM=rsc
R=golang-codereviews, rsc
CC=golang-codereviews, iant, khr
https://golang.org/cl/91010048
Diffstat (limited to 'src/cmd/api')
0 files changed, 0 insertions, 0 deletions
