Commit b6d6eb21 authored by Shenghou Ma's avatar Shenghou Ma

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

[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
parent f375c0eb
...@@ -76,7 +76,7 @@ enum { ...@@ -76,7 +76,7 @@ enum {
// The minimum stack segment size to allocate. // The minimum stack segment size to allocate.
// If the amount needed for the splitting frame + StackExtra // If the amount needed for the splitting frame + StackExtra
// is less than this number, the stack will have this size instead. // is less than this number, the stack will have this size instead.
StackMin = 65536, StackMin = 8192,
StackSystemRounded = StackSystem + (-StackSystem & (StackMin-1)), StackSystemRounded = StackSystem + (-StackSystem & (StackMin-1)),
FixedStack = StackMin + StackSystemRounded, FixedStack = StackMin + StackSystemRounded,
......
...@@ -28,7 +28,7 @@ runtime·rewindmorestack(Gobuf *gobuf) ...@@ -28,7 +28,7 @@ runtime·rewindmorestack(Gobuf *gobuf)
inst = *(uint32*)gobuf->pc; inst = *(uint32*)gobuf->pc;
if((gobuf->pc&3) == 0 && (inst>>24) == 0x4b && (inst&3) == 0) { 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; gobuf->pc += (int32)(inst<<8)>>8;
return; return;
} }
......
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