Skip to content

Commit

Permalink
[Truffle] Copy the Class allocator.
Browse files Browse the repository at this point in the history
* Fixes #2814.
  • Loading branch information
eregon committed Apr 14, 2015
1 parent bb9dbb7 commit e92392d
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -94,8 +94,9 @@ protected void unsafeSetSuperclass(RubyClass superClass) {

@Override
public void initCopy(RubyModule other) {
super.initCopy(other);
assert other instanceof RubyClass;
super.initCopy(other);
this.allocator = ((RubyClass) other).allocator;
}

private RubyClass ensureSingletonConsistency() {
Expand Down

0 comments on commit e92392d

Please sign in to comment.