summaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2013-12-06 18:26:27 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2013-12-06 18:26:27 +0000
commitdccd3a9b62340a2c41b449fb9609bfcebeaf333f (patch)
tree2b1a05a1976cabb612267e1f30991720b732cf35 /libgo
parent20e08dcdd743d07b82d3232df3129f0dd9aa3058 (diff)
downloadgcc-dccd3a9b62340a2c41b449fb9609bfcebeaf333f.tar.gz
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
Diffstat (limited to 'libgo')
-rw-r--r--libgo/runtime/lock_sema.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libgo/runtime/lock_sema.c b/libgo/runtime/lock_sema.c
index ce435119323..000b9fcf701 100644
--- a/libgo/runtime/lock_sema.c
+++ b/libgo/runtime/lock_sema.c
@@ -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();