projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20e08dc
)
re PR go/59408 (Many Go tests FAIL with notesleep not on g0)
author
Ian Lance Taylor
<ian@gcc.gnu.org>
Fri, 6 Dec 2013 18:26:27 +0000
(18:26 +0000)
committer
Ian Lance Taylor
<ian@gcc.gnu.org>
Fri, 6 Dec 2013 18:26:27 +0000
(18:26 +0000)
PR go/59408
runtime: Don't require g != m->g0 in sema notesleep.
From-SVN: r205756
libgo/runtime/lock_sema.c
patch
|
blob
|
history
diff --git
a/libgo/runtime/lock_sema.c
b/libgo/runtime/lock_sema.c
index
ce43511
..
000b9fc
100644
(file)
--- 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();