From 84097e4598747ef98c05dcd194491215301234d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Santos=20Costa?= Date: Fri, 18 Jun 2010 13:08:34 +0100 Subject: [PATCH] avoid stack expansion when booting (trouble with WIN32 saved states). --- configure | 16 +++------------- configure.in | 13 +++---------- 2 files changed, 6 insertions(+), 23 deletions(-) diff --git a/configure b/configure index d07fb2121..a97d74563 100755 --- a/configure +++ b/configure @@ -4058,22 +4058,12 @@ if test "${with_junit+set}" = set; then : fi -if test "$tabling" = yes -o "$orparallelism" = yes -o "$threads" = yes -then - $as_echo "#define MinHeapSpace (1000*SIZEOF_INT_P)" >>confdefs.h +$as_echo "#define MinHeapSpace (1000*SIZEOF_INT_P)" >>confdefs.h - $as_echo "#define MinStackSpace (300*SIZEOF_INT_P)" >>confdefs.h +$as_echo "#define MinStackSpace (300*SIZEOF_INT_P)" >>confdefs.h - $as_echo "#define MinTrailSpace ( 48*SIZEOF_INT_P)" >>confdefs.h +$as_echo "#define MinTrailSpace ( 48*SIZEOF_INT_P)" >>confdefs.h -else - $as_echo "#define MinHeapSpace (300*SIZEOF_INT_P)" >>confdefs.h - - $as_echo "#define MinStackSpace (200*SIZEOF_INT_P)" >>confdefs.h - - $as_echo "#define MinTrailSpace ( 32*SIZEOF_INT_P)" >>confdefs.h - -fi cat >>confdefs.h <<_ACEOF #define DefHeapSpace $yap_cv_heap_space diff --git a/configure.in b/configure.in index 44c0c64e5..9946a194f 100755 --- a/configure.in +++ b/configure.in @@ -340,16 +340,9 @@ AC_ARG_WITH(junit, [ --with-junit=PATH Specify location of the junit JAR file ;; esac]) -if test "$tabling" = yes -o "$orparallelism" = yes -o "$threads" = yes -then - AC_DEFINE(MinHeapSpace, (1000*SIZEOF_INT_P)) - AC_DEFINE(MinStackSpace,(300*SIZEOF_INT_P)) - AC_DEFINE(MinTrailSpace,( 48*SIZEOF_INT_P)) -else - AC_DEFINE(MinHeapSpace, (300*SIZEOF_INT_P)) - AC_DEFINE(MinStackSpace,(200*SIZEOF_INT_P)) - AC_DEFINE(MinTrailSpace,( 32*SIZEOF_INT_P)) -fi +AC_DEFINE(MinHeapSpace, (1000*SIZEOF_INT_P)) +AC_DEFINE(MinStackSpace,(300*SIZEOF_INT_P)) +AC_DEFINE(MinTrailSpace,( 48*SIZEOF_INT_P)) AC_DEFINE_UNQUOTED(DefHeapSpace,$yap_cv_heap_space) AC_DEFINE_UNQUOTED(DefStackSpace,$yap_cv_stack_space)