LEFT | RIGHT |
(Both sides are equal) |
1 // Copyright 2013 The Go Authors. All rights reserved. | 1 // Copyright 2013 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 #include "runtime.h" | 5 #include "runtime.h" |
6 #include "arch_GOARCH.h" | 6 #include "arch_GOARCH.h" |
7 #include "malloc.h" | 7 #include "malloc.h" |
8 #include "stack.h" | 8 #include "stack.h" |
9 #include "funcdata.h" | 9 #include "funcdata.h" |
10 #include "typekind.h" | 10 #include "typekind.h" |
(...skipping 1108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1119 if(gp->m != nil && gp->m->libcallsp != 0) | 1119 if(gp->m != nil && gp->m->libcallsp != 0) |
1120 return; | 1120 return; |
1121 #endif | 1121 #endif |
1122 if(StackDebug > 0) | 1122 if(StackDebug > 0) |
1123 runtime·printf("shrinking stack %D->%D\n", (uint64)oldsize, (uin
t64)newsize); | 1123 runtime·printf("shrinking stack %D->%D\n", (uint64)oldsize, (uin
t64)newsize); |
1124 nframes = copyabletopsegment(gp); | 1124 nframes = copyabletopsegment(gp); |
1125 if(nframes == -1) | 1125 if(nframes == -1) |
1126 return; | 1126 return; |
1127 copystack(gp, nframes, newsize); | 1127 copystack(gp, nframes, newsize); |
1128 } | 1128 } |
LEFT | RIGHT |