Selectively Disable JIT Compiler using command line options
-----------------------------------------------------------
Key: JRUBY-2679
URL: http://jira.codehaus.org/browse/JRUBY-2679
Project: JRuby
Issue Type: Improvement
Components: Compiler
Affects Versions: JRuby 1.1.2, JRuby 1.1.1
Environment: All Operating Systems and All Hardware
Reporter: Chase Wolfinger
Attachments: SelectivelyDisableJIT.patch
After running into a performance issue with the JIT compiler and the
append_features method, I believe it is desireable to selectively disable the
JIT compiler in order to work around these types of issues until a permanent
fix can be applied to the root cause. In order to due this, I have patched
the following two files:
src/org/jruby/RubyInstanceConfig.java - Added a new java property
"jruby.jit.exclude" that accepts a list of modules, classes, and methods to
exclude from the JIT compiler. The list is separated by a "," with the
modules, classes and methods defined with the "::" separator. Global /
singleton methods are prefixed with a "-". For example to disable the JIT for
the "append_features" then the following JVM argument will work
-Djruby.jit.exclude=-::append_features.
src/org/jruby/compiler/JITCompiler.java - Added a check on the configuration to
determine if the method should be excluded from the JIT. The check is a two
step check - exclude everything in a module or class OR exclude the specific
method.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email