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]

Re: libgo patch RFA: Export {enter,exit}syscall


On Tue, Mar 13, 2012 at 4:01 PM, Ian Lance Taylor <iant@google.com> wrote:
> The cooperative threading model used by Go works by calling entersyscall
> whenever we are about to make a call to a C function that may block.
> That was not being done for a call to getaddrinfo used when doing a DNS
> lookup. ?This patch fixes that problem by exporting the entersyscall and
> exitsyscall functions from the syscall package. ?Exporting a function in
> Go is done by naming it with a capital letter, so this patch simply
> consistently renames the entersyscall and exitsyscall functions and all
> their uses. ?This will also be useful for SWIG, which faces a similar
> issue.
>
> Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu.
> Committed to mainline.
>
> OK for 4.7 branch?

Approved for 4.7 by Jakub offline.  Committed to 4.7 branch.

Ian


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