Commit d86dd249 by Ian Lance Taylor

runtime: add type cast for non-split-stack calls to scanstackblock

    
    Reviewed-on: https://go-review.googlesource.com/c/162884

From-SVN: r268939
parent 2dca0c88
03e28273a4fcb114f5204d52ed107591404002f4 a9c1a76e14b66a356d3c3dfb50f1e6138e97733c
The first line of this file holds the git revision number of the last The first line of this file holds the git revision number of the last
merge done from the gofrontend repository. merge done from the gofrontend repository.
...@@ -110,15 +110,15 @@ static bool doscanstack1(G *gp, void *gcw) { ...@@ -110,15 +110,15 @@ static bool doscanstack1(G *gp, void *gcw) {
} }
top = (byte*)(void*)(gp->gcinitialsp) + gp->gcstacksize; top = (byte*)(void*)(gp->gcinitialsp) + gp->gcstacksize;
if(top > bottom) if(top > bottom)
scanstackblock(bottom, (uintptr)(top - bottom), gcw); scanstackblock((uintptr)(bottom), (uintptr)(top - bottom), gcw);
else else
scanstackblock(top, (uintptr)(bottom - top), gcw); scanstackblock((uintptr)(top), (uintptr)(bottom - top), gcw);
if (nextsp2 != nil) { if (nextsp2 != nil) {
initialsp2 = (byte*)(void*)(gp->gcinitialsp2); initialsp2 = (byte*)(void*)(gp->gcinitialsp2);
if(initialsp2 > nextsp2) if(initialsp2 > nextsp2)
scanstackblock(nextsp2, (uintptr)(initialsp2 - nextsp2), gcw); scanstackblock((uintptr)(nextsp2), (uintptr)(initialsp2 - nextsp2), gcw);
else else
scanstackblock(initialsp2, (uintptr)(nextsp2 - initialsp2), gcw); scanstackblock((uintptr)(initialsp2), (uintptr)(nextsp2 - initialsp2), gcw);
} }
#endif #endif
return true; return true;
......
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