mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: convert select implementation to Go.
LGTM=rsc R=golang-codereviews, bradfitz, iant, khr, rsc CC=golang-codereviews https://golang.org/cl/139020043
This commit is contained in:
parent
86040a091f
commit
1d8fa7fa5d
12 changed files with 677 additions and 673 deletions
|
|
@ -764,6 +764,9 @@ adjustsudogs(G *gp, AdjustInfo *adjinfo)
|
|||
e = s->elem;
|
||||
if(adjinfo->oldstk <= e && e < adjinfo->oldbase)
|
||||
s->elem = e + adjinfo->delta;
|
||||
e = (byte*)s->selectdone;
|
||||
if(adjinfo->oldstk <= e && e < adjinfo->oldbase)
|
||||
s->selectdone = (uint32*)(e + adjinfo->delta);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue