Skip to content
Permalink
Browse files
LocalVariable is immutable why do we make more in clone? Saves 1-2M o…
…f memory running

empty Rails application console (-X-C vs JIT savings)
  • Loading branch information
enebo committed Dec 18, 2014
1 parent 0f4adc3 commit ffa0ce232146ce692b2bf105c7fcd0a5b1c7ce35
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/src/main/java/org/jruby/ir/operands/LocalVariable.java
@@ -82,7 +82,7 @@ public Object retrieve(ThreadContext context, IRubyObject self, StaticScope curr

@Override
public Variable clone(SimpleCloneInfo ii) {
return new LocalVariable(name, scopeDepth, offset);
return this;
}

public LocalVariable cloneForDepth(int n) {

0 comments on commit ffa0ce2

Please sign in to comment.