On Tue, Mar 13, 2012 at 4:01 PM, Ian Lance Taylor <i...@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

Reply via email to