Permalink
Browse files

Avoid virtual dispatch for context.getRuntime() in base == impl.

  • Loading branch information...
1 parent 37113f6 commit 88718c4696163536bb35e7d828b1ecb046383931 @headius headius committed Mar 29, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/org/jruby/RubyBasicObject.java
View
4 src/org/jruby/RubyBasicObject.java
@@ -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) {

0 comments on commit 88718c4

Please sign in to comment.