From 5c10b1d6c028653020615e5d53909a0da5d4f8ec Mon Sep 17 00:00:00 2001 From: Daniel Lucraft Date: Sun, 15 Aug 2010 14:55:38 +0100 Subject: [PATCH] Pass -d32 and -client options to Java. This WILL break for some people. --- CHANGES | 1 + lib/redcar/runner.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index fb354b0ae..b2a8d14a9 100644 --- a/CHANGES +++ b/CHANGES @@ -9,6 +9,7 @@ Enhancements: * Option to save all tabs before running any Runnable (Delisa Mason) * Strip trailing spaces on save option (Steven Hancock) * Search and replace supports backreferences (\1 \2 etc) (Mat Schaffer) + * Uses client, 32bit jvm mode, for twice as fast startup. (Dan Lucraft) Fixes: diff --git a/lib/redcar/runner.rb b/lib/redcar/runner.rb index 2b3512c94..4e872f2a7 100644 --- a/lib/redcar/runner.rb +++ b/lib/redcar/runner.rb @@ -13,7 +13,7 @@ def spin_up exit 1 end ENV['RUBYOPT'] = nil # disable other native args - command = "java #{java_args} -Xmx500m -Xss1024k -Djruby.memory.max=500m -Djruby.stack.max=1024k -cp \"#{jruby_complete}\" org.jruby.Main #{"--debug" if debug_mode?} \"#{bin}\" #{cleaned_args} --no-sub-jruby --ignore-stdin" + command = "java -d32 -client #{java_args} -Xmx500m -Xss1024k -Djruby.memory.max=500m -Djruby.stack.max=1024k -cp \"#{jruby_complete}\" org.jruby.Main #{"--debug" if debug_mode?} \"#{bin}\" #{cleaned_args} --no-sub-jruby --ignore-stdin" puts command exec(command) end