Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(523)

Issue 49020044: runtime: allow external threads to wake up goroutines

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 9 months ago by dvyukov
Modified:
12 years, 9 months ago
Reviewers:
Visibility:
Public.

Description

runtime: allow external threads to wake up goroutines GOMAXPROCS=1 BenchmarkCgoBlockCallback 1042393 ns/op threads=815 GOMAXPROCS=4 BenchmarkCgoBlockCallback 1013339 ns/op threads=922 GOMAXPROCS=16 BenchmarkCgoBlockCallback 331943 ns/op threads=991 GOMAXPROCS=1 BenchmarkCgoBlockCallbackChan 5380903 ns/op threads=8 GOMAXPROCS=4 BenchmarkCgoBlockCallbackChan 390350 ns/op threads=52 GOMAXPROCS=16 BenchmarkCgoBlockCallbackChan 323382 ns/op threads=55 GOMAXPROCS=1 BenchmarkCgoBlockCallbackExternal 323619 ns/op threads=8 GOMAXPROCS=4 BenchmarkCgoBlockCallbackExternal 323361 ns/op threads=21 GOMAXPROCS=16 BenchmarkCgoBlockCallbackExternal 323010 ns/op threads=36

Patch Set 1 #

Patch Set 2 : diff -r 65a1b6a436af https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 3 : diff -r 99a1e180eda3 https://dvyukov%40google.com@code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+319 lines, -13 lines) Patch
A misc/cgo/test/block.c View 1 1 chunk +123 lines, -0 lines 0 comments Download
A misc/cgo/test/block.go View 1 1 chunk +50 lines, -0 lines 0 comments Download
M misc/cgo/test/cgo_test.go View 1 1 chunk +4 lines, -1 line 0 comments Download
M src/cmd/cgo/out.go View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/pkg/runtime/cgocall.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M src/pkg/runtime/cgocall.c View 1 1 chunk +14 lines, -0 lines 0 comments Download
M src/pkg/runtime/chan_test.go View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/debug.go View 1 1 chunk +4 lines, -0 lines 0 comments Download
M src/pkg/runtime/lfstack.c View 1 2 chunks +2 lines, -0 lines 0 comments Download
M src/pkg/runtime/netpoll_epoll.c View 1 5 chunks +49 lines, -9 lines 0 comments Download
M src/pkg/runtime/proc.c View 1 4 chunks +50 lines, -1 line 0 comments Download
M src/pkg/runtime/runtime.h View 1 3 chunks +9 lines, -1 line 0 comments Download
M src/pkg/runtime/sys_linux_amd64.s View 1 1 chunk +8 lines, -0 lines 0 comments Download

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b