summaryrefslogtreecommitdiff
path: root/src/runtime/chan_test.go
Commit message (Collapse)AuthorAgeFilesLines
* runtime: dequeue the correct SudoGKeith Randall2014-10-181-0/+29
| | | | | | | | | | | | | | | | | | | select { case <- c: case <- c: } In this case, c.recvq lists two SudoGs which have the same G. So we can't use the G as the key to dequeue the correct SudoG, as that key is ambiguous. Dequeueing the wrong SudoG ends up freeing a SudoG that is still in c.recvq. The fix is to use the actual SudoG pointer as the key. LGTM=dvyukov R=rsc, bradfitz, dvyukov, khr CC=austin, golang-codereviews https://codereview.appspot.com/159040043
* build: move package sources from src/pkg to srcRuss Cox2014-09-081-0/+791
Preparation was in CL 134570043. This CL contains only the effect of 'hg mv src/pkg/* src'. For more about the move, see golang.org/s/go14nopkg.