public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Go patch committed: Implement new syscall package
@ 2011-10-23 20:22 Ian Lance Taylor
  2011-10-25 17:00 ` Rainer Orth
  2011-12-20 16:47 ` Rainer Orth
  0 siblings, 2 replies; 17+ messages in thread
From: Ian Lance Taylor @ 2011-10-23 20:22 UTC (permalink / raw)
  To: gcc-patches, gofrontend-dev

[-- Attachment #1: Type: text/plain, Size: 1076 bytes --]

This patch is a rewrite of the syscall package in the Go library.  This
rewrite moves it from libgo/syscalls to libgo/go/syscall, to more
closely match the master Go library.  More importantly, it changes most
library calls to call new entersyscall and exitsyscall functions.  These
functions currently do nothing.  However, they are a step toward
multiplexing multiple goroutines onto a single thread, which will make
the implementation of goroutines more efficient.  When multiplexing
goroutines, it is of course essential to know when a goroutine is
calling a library function which may block.  This patch makes that
possible.

There are still some existing calls to possibly blocking library
functions in other parts of the library.  Those will also have to be
updated.

It's possible that this patch will once again break the Solaris and Irix
support.  I've tried to ensure that I didn't make any stupid errors, but
I haven't done any actual testing.  Sorry about any problems.

Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu.
Committed to mainline.

Ian


[-- Attachment #2: patch --]
[-- Type: application/x-bzip, Size: 38298 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2011-12-22 20:40 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-23 20:22 Go patch committed: Implement new syscall package Ian Lance Taylor
2011-10-25 17:00 ` Rainer Orth
2011-10-25 19:40   ` Ian Lance Taylor
2011-10-26 13:01     ` Rainer Orth
2011-10-26 14:00       ` Ian Lance Taylor
2011-10-26 15:50         ` Rainer Orth
2011-10-26 16:34           ` Ian Lance Taylor
2011-10-27  7:23           ` Ian Lance Taylor
2011-10-27 12:17             ` Rainer Orth
2011-10-28 18:19               ` Rainer Orth
2011-10-31 22:31                 ` Ian Lance Taylor
2011-10-31 22:10               ` Ian Lance Taylor
2011-12-20 16:47 ` Rainer Orth
2011-12-20 18:18   ` Ian Lance Taylor
2011-12-22 17:06     ` Rainer Orth
2011-12-22 20:43       ` Ian Lance Taylor
2011-12-20 18:49   ` Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).