Descriptionruntime: stack allocate Panic structure during runtime.panic
Update issue 7347
When runtime.panic is called the *Panic is malloced from the heap. This can lead to a gc cycle while panicing which can make a bad situation worse.
It appears to be possible to stack allocate the Panic and avoid malloc'ing during a panic.
Ref: https://groups.google.com/d/topic/golang-dev/OfxqpklGkh0/discussion
Patch Set 1 #Patch Set 2 : diff -r b5eda189b974 https://code.google.com/p/go #Patch Set 3 : diff -r b5eda189b974 https://code.google.com/p/go #
Total comments: 1
Patch Set 4 : diff -r b5eda189b974 https://code.google.com/p/go #MessagesTotal messages: 9
|