This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Go patch committed: allocate defer records on the stack


This Go patch Cherry Zhang allocates defer records on the stack.  When
a defer is executed at most once in a function body, we can allocate
the defer record for it on the stack instead of on the heap.  This
should make defers of this kind (which are very common) faster.  This
is a port of https://golang.org/cl/171758 from the gc repo.
Bootstrapped and ran Go testsuite on x86_64-pc-linux-gnu.  Committed
to mainline.

Ian

Attachment: patch.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]