diff options
| author | Hector Chu <hectorchu@gmail.com> | 2011-09-17 17:57:59 +1000 |
|---|---|---|
| committer | Alex Brainman <alex.brainman@gmail.com> | 2011-09-17 17:57:59 +1000 |
| commit | 9fd26872cb11e603fe91a927c22730061cc3ac0b (patch) | |
| tree | 6ea0f89a3de84caacceef6f058b1c02230765410 /src/pkg/runtime/runtime.h | |
| parent | 44f12eb5ad7c08b8303ec2ab2f7013b675d725fa (diff) | |
| download | go-9fd26872cb11e603fe91a927c22730061cc3ac0b.tar.xz | |
runtime: implement pprof support for windows
Credit to jp for proof of concept.
R=alex.brainman, jp, rsc, dvyukov
CC=golang-dev
https://golang.org/cl/4960057
Diffstat (limited to 'src/pkg/runtime/runtime.h')
| -rw-r--r-- | src/pkg/runtime/runtime.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pkg/runtime/runtime.h b/src/pkg/runtime/runtime.h index 25751b80e1..999511ac28 100644 --- a/src/pkg/runtime/runtime.h +++ b/src/pkg/runtime/runtime.h @@ -212,6 +212,7 @@ struct G uintptr sigcode1; uintptr sigpc; uintptr gopc; // pc of go statement that created this goroutine + uintptr end[]; }; struct M { @@ -253,9 +254,11 @@ struct M uint32 fflag; // floating point compare flags #ifdef __WINDOWS__ + void* thread; // thread handle void* event; // event for signalling M* nextwaitm; // next M waiting for lock #endif + uintptr end[]; }; struct Stktop |
