]> Cypherpunks repositories - gostls13.git/commitdiff
[dev.power64] runtime: switch back to old initial stack size, and disable debugging...
authorShenghou Ma <minux@golang.org>
Wed, 13 Aug 2014 05:23:00 +0000 (01:23 -0400)
committerShenghou Ma <minux@golang.org>
Wed, 13 Aug 2014 05:23:00 +0000 (01:23 -0400)
LGTM=rsc
R=rsc, iant
CC=golang-codereviews
https://golang.org/cl/129850044

src/pkg/runtime/stack.h
src/pkg/runtime/sys_power64x.c

index 64d377754f5573302414ca24fffc16cdeb9e6488..ee5fd351d5f8281d7fc8634ee3ea9897667ef1dd 100644 (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,
 
index ed8900c45e70230481a30f4e7e6249b3d3de4e98..79d976255f5b5b22d3de7580e7d128765aa27507 100644 (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;
        }