[Libreoffice-commits] core.git: configure.ac

Michael Stahl mstahl at redhat.com
Wed Oct 1 14:18:08 PDT 2014


 configure.ac |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit d08110c0be9e5290240082d899d45938730684eb
Author: Michael Stahl <mstahl at redhat.com>
Date:   Mon Sep 29 17:30:13 2014 +0200

    configure: limit JunitTest VM usage
    
    By default JVM will allocate a significant chunk of the available system
    VM, but our JunitTest run well for me with just 64 MB of max heap,
    so set this as a limit at least for Sun JVMs, to have tests running more
    smoothly on OS that lack VM over-commit.
    
    Change-Id: I5e4b5595decc3a133e7e285dfd7463d436fa458d
    Reviewed-on: https://gerrit.libreoffice.org/11698
    Reviewed-by: David Ostrovsky <david at ostrovsky.org>
    Tested-by: David Ostrovsky <david at ostrovsky.org>

diff --git a/configure.ac b/configure.ac
index 4e2eec9..af2bda8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -6712,6 +6712,9 @@ you must use the "--with-jdk-home" configure option explicitly])
             if test "$_os" = "WINNT"; then
                 JAVA_HOME=`echo $JAVA_HOME | $SED "s,\.[[eE]][[xX]][[eE]]$,,"`
             fi
+
+            # set to limit VM usage for JunitTests
+            JAVAIFLAGS=-Xmx64M
         fi
     else
         AC_MSG_ERROR([Java not found. You need at least jdk-1.5, or gcj-4])


More information about the Libreoffice-commits mailing list