JIT-compile methods named 'none'. #954

Closed
wants to merge 1 commit into
from

Projects

None yet

2 participants

@sluukkonen
Contributor

jruby.jit.exclude is set by default to "none", so methods named none won't be JIT-compiled.

How to reproduce:

$ pry
[1] pry(main)> def none
[1] pry(main)* end  
=> nil
[2] pry(main)> 100_000.times { |_| none }
2013-08-14T22:30:28.399+03:00: JITCompiler: skipping method: Object#none:Object.none at (pry):1
=> 100000

@sluukkonen
Contributor

Related to floere/phony#99.

@BanzaiMan BanzaiMan added a commit that closed this pull request Aug 15, 2013
@BanzaiMan Sakumatti Luukkonen + BanzaiMan Set `jruby.jit.exclude` method to `''`.
The old default `none` prevents a method named `none` to be
JIT-compiled.

Fixes #954.
25edb17
@BanzaiMan BanzaiMan closed this in 25edb17 Aug 15, 2013
@BanzaiMan
Member

Tweaked the commit message and merged. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment