Skip to content

Commit

Permalink
Avoid virtual dispatch for context.getRuntime() in base == impl.
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Apr 2, 2012
1 parent 37113f6 commit 88718c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/org/jruby/RubyBasicObject.java
Expand Up @@ -1153,9 +1153,9 @@ public IRubyObject op_equal(ThreadContext context, IRubyObject obj) {
*
* The name of this method doesn't follow the convention because hierarchy problems
*/
@JRubyMethod(name = "==", required = 1, compat = RUBY1_9)
@JRubyMethod(name = "==", compat = RUBY1_9)
public IRubyObject op_equal_19(ThreadContext context, IRubyObject obj) {
return this == obj ? context.getRuntime().getTrue() : context.getRuntime().getFalse();
return this == obj ? context.runtime.getTrue() : context.runtime.getFalse();
}

public IRubyObject op_eqq(ThreadContext context, IRubyObject other) {
Expand Down

0 comments on commit 88718c4

Please sign in to comment.