From cb8df667fbaa801f0661cd3db5406e9289473741 Mon Sep 17 00:00:00 2001 From: Stas Boukarev Date: Sun, 19 Mar 2017 19:09:52 +0300 Subject: [PATCH] Reduce initial stack size on x86-64. It doesn't need three initial slots because the C control stack and the lisp control stack are the same and it doesn't need to build fake foreign frames. --- src/compiler/x86-64/vm.lisp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/compiler/x86-64/vm.lisp b/src/compiler/x86-64/vm.lisp index 87ed9207e..5bcd7c481 100644 --- a/src/compiler/x86-64/vm.lisp +++ b/src/compiler/x86-64/vm.lisp @@ -183,7 +183,8 @@ (define-storage-base float-registers :finite :size 16) -(define-storage-base stack :unbounded :size 3 :size-increment 1) +;;; Start from 2, for the old RBP (aka OCFP) and return address +(define-storage-base stack :unbounded :size 2 :size-increment 1) (define-storage-base constant :non-packed) (define-storage-base immediate-constant :non-packed) (define-storage-base noise :unbounded :size 2) -- 2.11.4.GIT