Commit dccd3a9b by Ian Lance Taylor

re PR go/59408 (Many Go tests FAIL with notesleep not on g0)

	PR go/59408
runtime: Don't require g != m->g0 in sema notesleep.

From-SVN: r205756
parent 20e08dcd
...@@ -152,8 +152,12 @@ runtime_notesleep(Note *n) ...@@ -152,8 +152,12 @@ runtime_notesleep(Note *n)
m = runtime_m(); m = runtime_m();
/* For gccgo it's OK to sleep in non-g0, and it happens in
stoptheworld because we have not implemented preemption.
if(runtime_g() != m->g0) if(runtime_g() != m->g0)
runtime_throw("notesleep not on g0"); runtime_throw("notesleep not on g0");
*/
if(m->waitsema == 0) if(m->waitsema == 0)
m->waitsema = runtime_semacreate(); m->waitsema = runtime_semacreate();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment