1
0
mirror of https://github.com/golang/go synced 2024-10-02 10:28:34 -06:00
go/src/pkg
Russ Cox 81ed684a71 runtime: reconvert sigqueue.goc from C to Go
The original conversion in CL 132090043 cut up
the function in an attempt to avoid converting most
of the code to Go. This contorts the control flow.

While debugging the onM signal stack bug,
I reconverted sigqueue.goc in its entirety.
This restores the original control flow, which is
much easier to understand.

The current conversion is correct, it's just complex
and will be hard to maintain. The new one is as
readable as the original code.

I uploaded sigqueue.goc as the initial copy of
sigqueue.go in the CL, so if you view the diffs
of sigqueue.go comparing against patch set 2 [sic]
it will show the actual starting point.

For example:
https://golang.org/cl/136160043/diff2/20001:60001/src/pkg/runtime/sigqueue.go

LGTM=dvyukov, iant
R=golang-codereviews, dvyukov, iant
CC=golang-codereviews, khr, r
https://golang.org/cl/136160043
2014-09-04 13:51:12 -04:00
..
archive archive/zip: add Writer.Flush 2014-08-31 21:32:13 -07:00
bufio bufio: fix rot13Reader bug in test 2014-07-29 17:56:28 -07:00
builtin
bytes strings, bytes: document behavior of Replace when old is empty 2014-08-25 14:42:27 -07:00
compress compress/flate: use go generate to create fixedhuff.go 2014-08-28 15:04:03 -07:00
container container/heap: update example code 2014-05-15 13:58:13 -07:00
crypto crypto: Add SHA3 functions in go.crypto/sha3 to the Hash enum. 2014-09-02 12:23:49 -07:00
database/sql database/sql: Avoid re-preparing statements when all connections are busy 2014-09-02 09:08:41 -07:00
debug cmd/ld: diagnose Go calling C 2014-08-31 22:49:14 -04:00
encoding encoding/json: make ,string work when encoding pointer fields 2014-08-25 10:32:46 -07:00
errors
expvar all: spelling tweaks, A-G 2014-04-29 12:44:40 -04:00
flag flag: mention -h in docs 2014-08-08 08:57:18 +10:00
fmt fmt: print byte stringers correctly 2014-08-19 08:52:52 +10:00
go go/parser: initialize file set even in only some tests are run 2014-09-04 10:43:03 -07:00
hash all: copy cmd/ld/textflag.h into pkg/GOOS_GOARCH 2014-08-12 17:04:45 -07:00
html text/template: add back pointer to Nodes for better error generation 2014-08-29 09:54:00 -07:00
image image/png: make the CompressionLevel constants negative, reserving 2014-09-01 10:02:52 +10:00
index/suffixarray index/suffixarray: reduce size of a benchmark 2014-06-24 20:37:28 -07:00
internal/syscall internal/syscall: add support for getrandom on arm 2014-08-18 11:19:05 -07:00
io io: document that Readers and Writers must not retain buffers 2014-08-25 21:38:39 -07:00
log src, misc: applied gofmt -s -w 2014-07-16 16:29:51 -07:00
math all: copy cmd/ld/textflag.h into pkg/GOOS_GOARCH 2014-08-12 17:04:45 -07:00
mime mime: style, perf, and test updates to case-insensitive lookups 2014-08-28 11:07:46 -07:00
net net: fix parsing literal IPv6 address with zone identifier in builtin dns stub resolver 2014-09-04 12:53:51 +09:00
os os: make SameFile handle paths like c:a.txt properly 2014-08-19 14:59:56 +10:00
path path, path/filepath: remove dead code 2014-08-22 22:21:41 +10:00
reflect runtime: convert select implementation to Go. 2014-09-02 14:13:29 -07:00
regexp regexp: fix imports in the middle of the license header 2014-08-25 16:42:15 -07:00
runtime runtime: reconvert sigqueue.goc from C to Go 2014-09-04 13:51:12 -04:00
sort std lib: fix various typos in comments 2014-05-02 13:17:55 -07:00
strconv strconv: use go generate to create isprint.go 2014-08-28 14:55:02 -07:00
strings strings: use Rabin-Karp algorithm for LastIndex. 2014-09-01 17:47:57 +10:00
sync runtime/race: better handling of atomic operations 2014-09-01 08:04:33 -04:00
syscall runtime: convert netpoll to Go 2014-09-04 10:04:04 +04:00
testing testing: add Coverage function 2014-07-22 22:56:35 -04:00
text text/template: 0xef is an integer, not a floating-point value. 2014-09-03 15:57:03 -07:00
time runtime: convert netpoll to Go 2014-09-04 10:04:04 +04:00
unicode unicode: use go generate instead of make to create tables.go 2014-08-26 14:43:03 -07:00
unsafe