diff options
author | Shenghou Ma <minux@golang.org> | 2014-08-13 01:23:00 -0400 |
---|---|---|
committer | Shenghou Ma <minux@golang.org> | 2014-08-13 01:23:00 -0400 |
commit | 04d3bcd72901222de30ba28a643a386da4a5c0a3 (patch) | |
tree | c70eab9dd3ce82e268254867c24b234015a45f5d /src | |
parent | 47b1e82d6cab6de9ef3f404f49820c837915e365 (diff) | |
download | go-04d3bcd72901222de30ba28a643a386da4a5c0a3.tar.gz |
[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://codereview.appspot.com/129850044
Diffstat (limited to 'src')
-rw-r--r-- | src/pkg/runtime/stack.h | 2 | ||||
-rw-r--r-- | src/pkg/runtime/sys_power64x.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/runtime/stack.h b/src/pkg/runtime/stack.h index 64d377754..ee5fd351d 100644 --- a/src/pkg/runtime/stack.h +++ b/src/pkg/runtime/stack.h @@ -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, diff --git a/src/pkg/runtime/sys_power64x.c b/src/pkg/runtime/sys_power64x.c index ed8900c45..79d976255 100644 --- a/src/pkg/runtime/sys_power64x.c +++ b/src/pkg/runtime/sys_power64x.c @@ -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; } |