[m-rev.] diff: Increase heap size in Java grades.

Paul Bone paul at bone.id.au
Sun Nov 11 13:58:09 AEDT 2012


Increase heap size in Java grades.

With some versions of the Sun/Oracle JDK the java grade cannot be built.
Peter Ross found that using a larger heap size fixes this problem as
below.

m4/mercury.m4:
    Change the size of the Java heap from 256MB to 1024MB.

diff --git a/m4/mercury.m4 b/m4/mercury.m4
index 422195d..2435bc1 100644
--- a/m4/mercury.m4
+++ b/m4/mercury.m4
@@ -477,7 +477,7 @@ then
 	# included in the output files.  The quotes are necessary in order for
 	# --restricted-command-line to work with the Java backend.
 	mercury_cv_javac_flags_for_heap_size_test="-J-Xmx256m"
-	mercury_cv_javac_flags_for_heap_size="-J\"-Xmx256m\""
+	mercury_cv_javac_flags_for_heap_size="-J\"-Xmx1024m\""
 	if "$JAVAC" "$mercury_cv_javac_flags_for_heap_size_test" -version \
                 2> /dev/null
         then

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.mercurylang.org/archives/reviews/attachments/20121111/404d3ef9/attachment.sig>


More information about the reviews mailing list