1
0
mirror of https://github.com/golang/go synced 2024-10-05 18:21:21 -06:00

[dev.power64] runtime: switch back to old initial stack size, and disable debugging messages for rewindmorestack

LGTM=rsc
R=rsc, iant
CC=golang-codereviews
https://golang.org/cl/129850044
This commit is contained in:
Shenghou Ma 2014-08-13 01:23:00 -04:00
parent f375c0eb0d
commit b6d6eb21ec
2 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ enum {
// The minimum stack segment size to allocate.
// If the amount needed for the splitting frame + StackExtra
// is less than this number, the stack will have this size instead.
StackMin = 65536,
StackMin = 8192,
StackSystemRounded = StackSystem + (-StackSystem & (StackMin-1)),
FixedStack = StackMin + StackSystemRounded,

View File

@ -28,7 +28,7 @@ runtime·rewindmorestack(Gobuf *gobuf)
inst = *(uint32*)gobuf->pc;
if((gobuf->pc&3) == 0 && (inst>>24) == 0x4b && (inst&3) == 0) {
runtime·printf("runtime: rewind pc=%p to pc=%p\n", gobuf->pc, gobuf->pc + ((int32)(inst<<8)>>8));
//runtime·printf("runtime: rewind pc=%p to pc=%p\n", gobuf->pc, gobuf->pc + ((int32)(inst<<8)>>8));
gobuf->pc += (int32)(inst<<8)>>8;
return;
}