mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 23:25:24 +02:00
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
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user