mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: close TODO now that 8c bug is fixed
R=r CC=golang-dev https://golang.org/cl/183138
This commit is contained in:
parent
fce5d60b38
commit
74a9fc18f6
2 changed files with 5 additions and 23 deletions
|
|
@ -388,12 +388,7 @@ starttheworld(void)
|
|||
void
|
||||
mstart(void)
|
||||
{
|
||||
// TODO(rsc): Change 8g not to assume that extern register
|
||||
// variables are directly addressable. Declaring the
|
||||
// local variable here works around the bug.
|
||||
G* gg = g;
|
||||
|
||||
if(gg != m->g0)
|
||||
if(g != m->g0)
|
||||
throw("bad mstart");
|
||||
if(m->mcache == nil)
|
||||
m->mcache = allocmcache();
|
||||
|
|
@ -524,12 +519,7 @@ scheduler(void)
|
|||
void
|
||||
gosched(void)
|
||||
{
|
||||
// TODO(rsc): Change 8g not to assume that extern register
|
||||
// variables are directly addressable. Declaring the
|
||||
// local variable here works around the bug.
|
||||
G* gg = g;
|
||||
|
||||
if(gg == m->g0)
|
||||
if(g == m->g0)
|
||||
throw("gosched of g0");
|
||||
if(gosave(&g->sched) == 0)
|
||||
gogo(&m->sched, 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue