Skip to content
Snippets Groups Projects
Commit dccd3a9b authored by Ian Lance Taylor's avatar Ian Lance Taylor
Browse files

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
No related branches found
No related tags found
No related merge requests found
......@@ -152,8 +152,12 @@ runtime_notesleep(Note *n)
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)
runtime_throw("notesleep not on g0");
*/
if(m->waitsema == 0)
m->waitsema = runtime_semacreate();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment