Skip to content

Commit

Permalink
Added unsafe optimizations and explicit -client mode for all-in-one d…
Browse files Browse the repository at this point in the history
…istribution

git-svn-id: https://svn.apache.org/repos/asf/buildr/trunk@932121 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
djspiewak committed Apr 8, 2010
1 parent a4cf70a commit 253d650
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions all-in-one/buildr
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -260,6 +260,12 @@ if [[ $darwin && -z "$JAVA_ENCODING" ]]; then
java_args=("${java_args[@]}" "-Dfile.encoding=UTF-8") java_args=("${java_args[@]}" "-Dfile.encoding=UTF-8")
fi 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 # 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}" JAVA_OPTS="$JAVA_OPTS $JAVA_VM -Djruby.memory.max=${JAVA_MEM:4} -Djruby.stack.max=${JAVA_STACK:4}"


Expand Down

0 comments on commit 253d650

Please sign in to comment.