Skip to content

Commit 68ed7f1

Browse files
new
Change-Id: I6727b54b5374fdf49665925e80dcd1b8813fafc3
1 parent 3b4d81d commit 68ed7f1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/runtime/proc.go

+1
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ func mainThreadDo(f func()) {
149149
gp := getg()
150150
if gp.m == &m0 {
151151
f()
152+
return
152153
}
153154
waitm0 <- struct{}{}
154155
m0func <- f

0 commit comments

Comments
 (0)