Commit 54340bf5 authored by Dmitriy Vyukov's avatar Dmitriy Vyukov

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
parent 77354c39
...@@ -1178,6 +1178,7 @@ park0(G *gp) ...@@ -1178,6 +1178,7 @@ park0(G *gp)
if(m->waitunlockf) { if(m->waitunlockf) {
m->waitunlockf(m->waitlock); m->waitunlockf(m->waitlock);
m->waitunlockf = nil; m->waitunlockf = nil;
m->waitlock = nil;
} }
if(m->lockedg) { if(m->lockedg) {
stoplockedm(); stoplockedm();
......
...@@ -317,7 +317,7 @@ struct M ...@@ -317,7 +317,7 @@ struct M
bool needextram; bool needextram;
void* racepc; void* racepc;
void (*waitunlockf)(Lock*); void (*waitunlockf)(Lock*);
Lock* waitlock; void* waitlock;
uint32 moreframesize_minalloc; uint32 moreframesize_minalloc;
uintptr settype_buf[1024]; uintptr settype_buf[1024];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment