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)
if(m->waitunlockf) {
m->waitunlockf(m->waitlock);
m->waitunlockf = nil;
m->waitlock = nil;
}
if(m->lockedg) {
stoplockedm();
......
......@@ -317,7 +317,7 @@ struct M
bool needextram;
void* racepc;
void (*waitunlockf)(Lock*);
Lock* waitlock;
void* waitlock;
uint32 moreframesize_minalloc;
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