Permalink
Browse files

Added unsafe optimizations and explicit -client mode for all-in-one d…

…istribution

git-svn-id: https://svn.apache.org/repos/asf/buildr/trunk@932121 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent a4cf70a commit 253d650750a4ef6e8671f72c97a8c8b4abeb8e37 @djspiewak committed Apr 8, 2010
Showing with 6 additions and 0 deletions.
  1. +6 −0 all-in-one/buildr
View
@@ -260,6 +260,12 @@ if [[ $darwin && -z "$JAVA_ENCODING" ]]; then
java_args=("${java_args[@]}" "-Dfile.encoding=UTF-8")
fi
+# Force -client mode for Buildr
+JAVA_VM=-client
+
+# Add unsafe optimizations known to be sound for Buildr
+JAVA_OPTS="$JAVA_OPTS -Djruby.compile.frameless=true -Djruby.compile.positionless=true -Djruby.compile.threadless=true -Djruby.compile.fastops=true"
+
# Add a property to report memory max
JAVA_OPTS="$JAVA_OPTS $JAVA_VM -Djruby.memory.max=${JAVA_MEM:4} -Djruby.stack.max=${JAVA_STACK:4}"

0 comments on commit 253d650

Please sign in to comment.