diff options
| author | Dmitriy Vyukov <dvyukov@google.com> | 2014-01-22 10:30:10 +0400 |
|---|---|---|
| committer | Dmitriy Vyukov <dvyukov@google.com> | 2014-01-22 10:30:10 +0400 |
| commit | 8a3c587dc1a5f7a9cd87b764b74e28a57935ab40 (patch) | |
| tree | 9848ee5c4e0a4a46d3b33ac17459100b70154ce8 /src/pkg/runtime/runtime.h | |
| parent | f69391dd9e33132f5082636ffcfd847d7ac07b53 (diff) | |
| download | go-8a3c587dc1a5f7a9cd87b764b74e28a57935ab40.tar.xz | |
runtime: fix and improve CPU profiling
- do not lose profiling signals when we have no mcache (possible for syscalls/cgo)
- do not lose any profiling signals on windows
- fix profiling of cgo programs on windows (they had no m->thread setup)
- properly setup tls in cgo programs on windows
- check _beginthread return value
Fixes #6417.
Fixes #6986.
R=alex.brainman, rsc
CC=golang-codereviews
https://golang.org/cl/44820047
Diffstat (limited to 'src/pkg/runtime/runtime.h')
| -rw-r--r-- | src/pkg/runtime/runtime.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/runtime/runtime.h b/src/pkg/runtime/runtime.h index 6ce5df98e6..119b9e3b7d 100644 --- a/src/pkg/runtime/runtime.h +++ b/src/pkg/runtime/runtime.h @@ -864,7 +864,7 @@ void runtime·dopanic(int32); void runtime·startpanic(void); void runtime·freezetheworld(void); void runtime·unwindstack(G*, byte*); -void runtime·sigprof(uint8 *pc, uint8 *sp, uint8 *lr, G *gp); +void runtime·sigprof(uint8 *pc, uint8 *sp, uint8 *lr, G *gp, M *mp); void runtime·resetcpuprofiler(int32); void runtime·setcpuprofilerate(void(*)(uintptr*, int32), int32); void runtime·usleep(uint32); |
