Descriptionruntime: 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 issue 7922.
Patch Set 1 #Patch Set 2 : diff -r b0443478e712 https://dvyukov%40google.com@code.google.com/p/go/ #Patch Set 3 : diff -r b0443478e712 https://dvyukov%40google.com@code.google.com/p/go/ #Patch Set 4 : diff -r b0443478e712 https://dvyukov%40google.com@code.google.com/p/go/ #Patch Set 5 : diff -r a80c7c32d1cc https://dvyukov%40google.com@code.google.com/p/go/ #MessagesTotal messages: 5
|