Permalink
Browse files

no need to report memory/stack as properties

as they are resolved from RuntimeMXBean (see 5d86783)
  • Loading branch information...
kares committed Sep 9, 2012
1 parent fc44a6b commit d9b569f526663cd40cec2dc2d92428a81a405a7f
Showing with 1 addition and 4 deletions.
  1. +1 −4 bin/jruby.sh
View
@@ -248,16 +248,13 @@ if [[ -z "$JAVA_ENCODING" ]]; then
java_args="${java_args} -Dfile.encoding=UTF-8"
fi
-# Add a property to report memory max
-JAVA_OPTS="$JAVA_OPTS $JAVA_VM -Djruby.memory.max=${JAVA_MEM} -Djruby.stack.max=${JAVA_STACK}"
-
# Append the rest of the arguments
ruby_args="${ruby_args} $@"
# Put the ruby_args back into the position arguments $1, $2 etc
set -- "${ruby_args}"
-JAVA_OPTS="$JAVA_OPTS $JAVA_MEM $JAVA_STACK"
+JAVA_OPTS="$JAVA_OPTS $JAVA_VM $JAVA_MEM $JAVA_STACK"
JFFI_BOOT=""
if [ -d "$JRUBY_HOME/lib/native/" ]; then

0 comments on commit d9b569f

Please sign in to comment.