Skip to content

Commit

Permalink
Modify --properties list to use new short form.
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Aug 26, 2011
1 parent bcedef3 commit 318191b
Showing 1 changed file with 43 additions and 42 deletions.
85 changes: 43 additions & 42 deletions src/org/jruby/RubyInstanceConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -564,96 +564,97 @@ public String getPropertyHelp() {
StringBuilder sb = new StringBuilder();
sb
.append("These properties can be used to alter runtime behavior for perf or compatibility.\n")
.append("Specify them by passing -J-D<property>=<value>\n")
.append("Specify them by passing -X<property>=<value>\n")
.append(" or if passing directly to Java, -Djruby.<property>=<value>\n")
.append("\nCOMPILER SETTINGS:\n")
.append(" jruby.compile.mode=JIT|FORCE|OFF\n")
.append(" compile.mode=JIT|FORCE|OFF\n")
.append(" Set compilation mode. JIT is default; FORCE compiles all, OFF disables\n")
.append(" jruby.compile.threadless=true|false\n")
.append(" compile.threadless=true|false\n")
.append(" (EXPERIMENTAL) Turn on compilation without polling for \"unsafe\" thread events. Default is false\n")
.append(" jruby.compile.dynopt=true|false\n")
.append(" compile.dynopt=true|false\n")
.append(" (EXPERIMENTAL) Use interpreter to help compiler make direct calls. Default is false\n")
.append(" jruby.compile.fastops=true|false\n")
.append(" compile.fastops=true|false\n")
.append(" Turn on fast operators for Fixnum and Float. Default is true\n")
.append(" jruby.compile.chainsize=<line count>\n")
.append(" compile.chainsize=<line count>\n")
.append(" Set the number of lines at which compiled bodies are \"chained\". Default is ").append(CHAINED_COMPILE_LINE_COUNT_DEFAULT).append("\n")
.append(" jruby.compile.lazyHandles=true|false\n")
.append(" compile.lazyHandles=true|false\n")
.append(" Generate method bindings (handles) for compiled methods lazily. Default is false.\n")
.append(" jruby.compile.peephole=true|false\n")
.append(" compile.peephole=true|false\n")
.append(" Enable or disable peephole optimizations. Default is true (on).\n")
.append("\nJIT SETTINGS:\n")
.append(" jruby.jit.threshold=<invocation count>\n")
.append(" jit.threshold=<invocation count>\n")
.append(" Set the JIT threshold to the specified method invocation count. Default is ").append(JIT_THRESHOLD).append(".\n")
.append(" jruby.jit.max=<method count>\n")
.append(" jit.max=<method count>\n")
.append(" Set the max count of active methods eligible for JIT-compilation.\n")
.append(" Default is ").append(JIT_MAX_METHODS_LIMIT).append(" per runtime. A value of 0 disables JIT, -1 disables max.\n")
.append(" jruby.jit.maxsize=<jitted method size (full .class)>\n")
.append(" jit.maxsize=<jitted method size (full .class)>\n")
.append(" Set the maximum full-class byte size allowed for jitted methods. Default is ").append(JIT_MAX_SIZE_LIMIT).append(".\n")
.append(" jruby.jit.logging=true|false\n")
.append(" jit.logging=true|false\n")
.append(" Enable JIT logging (reports successful compilation). Default is false\n")
.append(" jruby.jit.logging.verbose=true|false\n")
.append(" jit.logging.verbose=true|false\n")
.append(" Enable verbose JIT logging (reports failed compilation). Default is false\n")
.append(" jruby.jit.logEvery=<method count>\n")
.append(" jit.logEvery=<method count>\n")
.append(" Log a message every n methods JIT compiled. Default is 0 (off).\n")
.append(" jruby.jit.exclude=<ClsOrMod,ClsOrMod::method_name,-::method_name>\n")
.append(" jit.exclude=<ClsOrMod,ClsOrMod::method_name,-::method_name>\n")
.append(" Exclude methods from JIT by class/module short name, c/m::method_name,\n")
.append(" or -::method_name for anon/singleton classes/modules. Comma-delimited.\n")
.append(" jruby.jit.cache=true|false\n")
.append(" jit.cache=true|false\n")
.append(" Cache jitted method in-memory bodies across runtimes and loads. Default is true.\n")
.append(" jruby.jit.codeCache=<dir>\n")
.append(" jit.codeCache=<dir>\n")
.append(" Save jitted methods to <dir> as they're compiled, for future runs.\n")
.append("\nNATIVE SUPPORT:\n")
.append(" jruby.native.enabled=true|false\n")
.append(" native.enabled=true|false\n")
.append(" Enable/disable native extensions (like JNA for non-Java APIs; Default is true\n")
.append(" (This affects all JRuby instances in a given JVM)\n")
.append(" jruby.native.verbose=true|false\n")
.append(" native.verbose=true|false\n")
.append(" Enable verbose logging of native extension loading. Default is false.\n")
.append("\nTHREAD POOLING:\n")
.append(" jruby.thread.pool.enabled=true|false\n")
.append(" thread.pool.enabled=true|false\n")
.append(" Enable reuse of native backing threads via a thread pool. Default is false.\n")
.append(" jruby.thread.pool.min=<min thread count>\n")
.append(" thread.pool.min=<min thread count>\n")
.append(" The minimum number of threads to keep alive in the pool. Default is 0.\n")
.append(" jruby.thread.pool.max=<max thread count>\n")
.append(" thread.pool.max=<max thread count>\n")
.append(" The maximum number of threads to allow in the pool. Default is unlimited.\n")
.append(" jruby.thread.pool.ttl=<time to live, in seconds>\n")
.append(" thread.pool.ttl=<time to live, in seconds>\n")
.append(" The maximum number of seconds to keep alive an idle thread. Default is 60.\n")
.append("\nMISCELLANY:\n")
.append(" jruby.compat.version=1.8|1.9\n")
.append(" compat.version=1.8|1.9\n")
.append(" Specify the major Ruby version to be compatible with; Default is RUBY1_8\n")
.append(" jruby.objectspace.enabled=true|false\n")
.append(" objectspace.enabled=true|false\n")
.append(" Enable or disable ObjectSpace.each_object (default is disabled)\n")
.append(" jruby.launch.inproc=true|false\n")
.append(" launch.inproc=true|false\n")
.append(" Set in-process launching of e.g. system('ruby ...'). Default is true\n")
.append(" jruby.bytecode.version=1.5|1.6\n")
.append(" bytecode.version=1.5|1.6\n")
.append(" Set bytecode version for JRuby to generate. Default is current JVM version.\n")
.append(" jruby.management.enabled=true|false\n")
.append(" management.enabled=true|false\n")
.append(" Set whether JMX management is enabled. Default is false.\n")
.append(" jruby.jump.backtrace=true|false\n")
.append(" jump.backtrace=true|false\n")
.append(" Make non-local flow jumps generate backtraces. Default is false.\n")
.append(" jruby.process.noUnwrap=true|false\n")
.append(" process.noUnwrap=true|false\n")
.append(" Do not unwrap process streams (IBM Java 6 issue). Default is false.\n")
.append(" jruby.reify.classes=true|false\n")
.append(" reify.classes=true|false\n")
.append(" Before instantiation, stand up a real Java class for ever Ruby class. Default is false. \n")
.append(" jruby.reify.logErrors=true|false\n")
.append(" reify.logErrors=true|false\n")
.append(" Log errors during reification (reify.classes=true). Default is false. \n")
.append(" reflected.handles=true|false\n")
.append(" Use reflection for binding methods, not generated bytecode. Default is false.\n")
.append("\nDEBUGGING/LOGGING:\n")
.append(" jruby.debug.loadService=true|false\n")
.append(" debug.loadService=true|false\n")
.append(" LoadService logging\n")
.append(" jruby.debug.loadService.timing=true|false\n")
.append(" debug.loadService.timing=true|false\n")
.append(" Print load timings for each require'd library. Default is false.\n")
.append(" jruby.debug.launch=true|false\n")
.append(" debug.launch=true|false\n")
.append(" ShellLauncher logging\n")
.append(" jruby.debug.fullTrace=true|false\n")
.append(" debug.fullTrace=true|false\n")
.append(" Set whether full traces are enabled (c-call/c-return). Default is false.\n")
.append(" jruby.debug.scriptResolution=true|false\n")
.append(" debug.scriptResolution=true|false\n")
.append(" Print which script is executed by '-S' flag. Default is false.\n")
.append(" jruby.reflected.handles=true|false\n")
.append(" Use reflection for binding methods, not generated bytecode. Default is false.\n")
.append(" jruby.errno.backtrace=true|false\n")
.append(" errno.backtrace=true|false\n")
.append(" Generate backtraces for heavily-used Errno exceptions (EAGAIN). Default is false.\n")
.append("\nJAVA INTEGRATION:\n")
.append(" jruby.ji.setAccessible=true|false\n")
.append(" ji.setAccessible=true|false\n")
.append(" Try to set inaccessible Java methods to be accessible. Default is true.\n")
.append(" jruby.interfaces.useProxy=true|false\n")
.append(" interfaces.useProxy=true|false\n")
.append(" Use java.lang.reflect.Proxy for interface impl. Default is false.\n");

return sb.toString();
Expand Down

0 comments on commit 318191b

Please sign in to comment.