avoid stack expansion when booting (trouble with WIN32 saved states).

This commit is contained in:
Vítor Santos Costa 2010-06-18 13:08:34 +01:00
parent 0793bbc07c
commit 84097e4598
2 changed files with 6 additions and 23 deletions

10
configure vendored
View File

@ -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 MinStackSpace (300*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

View File

@ -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_UNQUOTED(DefHeapSpace,$yap_cv_heap_space)
AC_DEFINE_UNQUOTED(DefStackSpace,$yap_cv_stack_space)