summaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2013-12-06 18:26:27 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2013-12-06 18:26:27 +0000
commit64890165731ed14a18b199e025aefb36d3e38265 (patch)
tree2b1a05a1976cabb612267e1f30991720b732cf35 /libgo
parent00152dcd62b7e1e240f3fa5f07ad8208ec3883db (diff)
downloadgcc-64890165731ed14a18b199e025aefb36d3e38265.tar.gz
PR go/59408
runtime: Don't require g != m->g0 in sema notesleep. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205756 138bc75d-0d04-0410-961f-82ee72b054a4
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();