aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/stack1.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/stack1.go')
-rw-r--r--src/runtime/stack1.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/runtime/stack1.go b/src/runtime/stack1.go
index 3f89bb1739..5f28d28757 100644
--- a/src/runtime/stack1.go
+++ b/src/runtime/stack1.go
@@ -439,10 +439,13 @@ func adjustframe(frame *stkframe, arg unsafe.Pointer) bool {
// Adjust local variables if stack frame has been allocated.
size := frame.varp - frame.sp
var minsize uintptr
- if thechar != '6' && thechar != '8' {
- minsize = ptrSize
- } else {
+ switch thechar {
+ case '6', '8':
minsize = 0
+ case '7':
+ minsize = spAlign
+ default:
+ minsize = ptrSize
}
if size > minsize {
var bv bitvector