[Swift-commit] r3558 - trunk/bin
noreply at svn.ci.uchicago.edu
noreply at svn.ci.uchicago.edu
Fri Aug 20 14:57:26 CDT 2010
Author: wozniak
Date: 2010-08-20 14:57:26 -0500 (Fri, 20 Aug 2010)
New Revision: 3558
Modified:
trunk/bin/swift
Log:
Add SWIFT_HEAP_MAX variable
Modified: trunk/bin/swift
===================================================================
--- trunk/bin/swift 2010-08-20 07:11:57 UTC (rev 3557)
+++ trunk/bin/swift 2010-08-20 19:57:26 UTC (rev 3558)
@@ -1,5 +1,9 @@
#! /bin/sh
+# Referenced environment variables (default values):
+# SWIFT_HEAP_MAX (256M)
+# SWIFT_USAGE_STATS
+
EXEC=org.griphyn.vdl.karajan.Loader
OPTIONS=
@@ -8,7 +12,7 @@
HEAPMAX=256M
if echo `uname` | grep -i "cygwin"; then
- CYGWIN="yes"
+ CYGWIN="yes"
CPDELIM=";"
fi
@@ -27,7 +31,7 @@
updateOptions() {
if [ "X$1" != "X" ] ; then
- OPTIONS="$OPTIONS -D$2=$1"
+ OPTIONS="$OPTIONS -D$2=$1"
fi
}
@@ -82,6 +86,9 @@
#large delays if /dev/random does not have enough entropy collected
updateOptions "file:///dev/urandom" "java.security.egd"
+if [ "X$SWIFT_HEAP_MAX" != "X" ]; then
+ HEAPMAX=$SWIFT_HEAP_MAX
+fi
if [ "X$HEAPMAX" != "X" ]; then
OPTIONS="-Xmx$HEAPMAX $OPTIONS"
fi
@@ -151,3 +158,7 @@
fi
exit $return_code
+
+# Local Variables:
+# tab-width: 4
+# End:
More information about the Swift-commit
mailing list