diff options
| author | Dmitriy Vyukov <dvyukov@google.com> | 2013-02-06 11:40:54 +0400 |
|---|---|---|
| committer | Dmitriy Vyukov <dvyukov@google.com> | 2013-02-06 11:40:54 +0400 |
| commit | 0a40cd2661a14baa9a57b4f5af84494455d83f88 (patch) | |
| tree | fcb6b00b3305406b1ec5c62a8e14b103b9685e0b /src/pkg/runtime/runtime.h | |
| parent | 33995fe59eddb3f84e537a8d44e39ef93bc764e8 (diff) | |
| download | go-0a40cd2661a14baa9a57b4f5af84494455d83f88.tar.xz | |
runtime/race: switch to explicit race context instead of goroutine id's
Removes limit on maximum number of goroutines ever existed.
code.google.com/p/goexecutor tests now pass successfully.
Also slightly improves performance.
Before: $ time ./flate.test -test.short
real 0m9.314s
After: $ time ./flate.test -test.short
real 0m8.958s
Fixes #4286.
The runtime is built from llvm rev 174312.
R=rsc
CC=golang-dev
https://golang.org/cl/7218044
Diffstat (limited to 'src/pkg/runtime/runtime.h')
| -rw-r--r-- | src/pkg/runtime/runtime.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pkg/runtime/runtime.h b/src/pkg/runtime/runtime.h index ea46388d71..77f60cb4b5 100644 --- a/src/pkg/runtime/runtime.h +++ b/src/pkg/runtime/runtime.h @@ -233,6 +233,7 @@ struct G uintptr sigcode1; uintptr sigpc; uintptr gopc; // pc of go statement that created this goroutine + uintptr racectx; uintptr end[]; }; struct M |
