diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2013-12-06 18:26:27 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2013-12-06 18:26:27 +0000 |
commit | dccd3a9b62340a2c41b449fb9609bfcebeaf333f (patch) | |
tree | 2b1a05a1976cabb612267e1f30991720b732cf35 /libgo | |
parent | 20e08dcdd743d07b82d3232df3129f0dd9aa3058 (diff) | |
download | gcc-dccd3a9b62340a2c41b449fb9609bfcebeaf333f.zip gcc-dccd3a9b62340a2c41b449fb9609bfcebeaf333f.tar.gz gcc-dccd3a9b62340a2c41b449fb9609bfcebeaf333f.tar.bz2 |
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.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libgo/runtime/lock_sema.c b/libgo/runtime/lock_sema.c index ce43511..000b9fc 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(); |