Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jruby/jruby
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 079df3e3b3fc
Choose a base ref
...
head repository: jruby/jruby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: d26c8465b802
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Dec 28, 2015

  1. Use Truffle mode for RubyLanguage.

    headius authored and chrisseaton committed Dec 28, 2015
    Copy the full SHA
    d26c846 View commit details
Showing with 4 additions and 1 deletion.
  1. +4 −1 truffle/src/main/java/org/jruby/truffle/runtime/RubyLanguage.java
Original file line number Diff line number Diff line change
@@ -20,6 +20,7 @@
import com.oracle.truffle.api.nodes.Node;
import com.oracle.truffle.api.source.Source;
import org.jruby.Ruby;
import org.jruby.RubyInstanceConfig;
import org.jruby.runtime.Constants;
import org.jruby.truffle.nodes.LazyRubyRootNode;
import org.jruby.truffle.nodes.RubyGuards;
@@ -63,7 +64,9 @@ public RubyContext createContext(Env env) {
final Ruby runtime;

if (runtimeWrapper == null) {
runtime = Ruby.newInstance();
RubyInstanceConfig config = new RubyInstanceConfig();
config.setCompileMode(RubyInstanceConfig.CompileMode.TRUFFLE);
runtime = Ruby.newInstance(config);
} else {
runtime = runtimeWrapper.getRuby();
}