diff options
| author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-06 18:26:27 +0000 |
|---|---|---|
| committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-06 18:26:27 +0000 |
| commit | 64890165731ed14a18b199e025aefb36d3e38265 (patch) | |
| tree | 2b1a05a1976cabb612267e1f30991720b732cf35 | |
| parent | 00152dcd62b7e1e240f3fa5f07ad8208ec3883db (diff) | |
| download | ppe42-gcc-64890165731ed14a18b199e025aefb36d3e38265.tar.gz ppe42-gcc-64890165731ed14a18b199e025aefb36d3e38265.zip | |
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
| -rw-r--r-- | libgo/runtime/lock_sema.c | 4 |
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(); |

