diff options
| author | Dmitriy Vyukov <dvyukov@google.com> | 2013-04-06 20:01:28 -0700 |
|---|---|---|
| committer | Dmitriy Vyukov <dvyukov@google.com> | 2013-04-06 20:01:28 -0700 |
| commit | 54340bf56fb4b29ea175d85cff4ba765a60961b6 (patch) | |
| tree | 65180c59812814a845341ec0c3418619cdc885cd /src/pkg/runtime/proc.c | |
| parent | 77354c39f9b9b35537951c4d98868b88214bf8dd (diff) | |
| download | go-54340bf56fb4b29ea175d85cff4ba765a60961b6.tar.xz | |
runtime: reset dangling typed pointer
+untype it because it can point to different types
Update #5193.
R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/8454043
Diffstat (limited to 'src/pkg/runtime/proc.c')
| -rw-r--r-- | src/pkg/runtime/proc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pkg/runtime/proc.c b/src/pkg/runtime/proc.c index 438de78b09..0a131871f3 100644 --- a/src/pkg/runtime/proc.c +++ b/src/pkg/runtime/proc.c @@ -1178,6 +1178,7 @@ park0(G *gp) if(m->waitunlockf) { m->waitunlockf(m->waitlock); m->waitunlockf = nil; + m->waitlock = nil; } if(m->lockedg) { stoplockedm(); |
