This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: libgo patch RFA: Export {enter,exit}syscall
- From: Ian Lance Taylor <iant at google dot com>
- To: gcc-patches at gcc dot gnu dot org, gofrontend-dev at googlegroups dot com
- Cc: jakub at redhat dot com
- Date: Thu, 15 Mar 2012 12:48:15 -0700
- Subject: Re: libgo patch RFA: Export {enter,exit}syscall
- References: <mcrvcm85cmj.fsf@dhcp-172-18-216-180.mtv.corp.google.com>
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