Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Log class names for invalid ivars_ references
This makes it a bit easier to see what kind of objects we're dealing
with when this occurs.
  • Loading branch information
Yorick Peterse committed Jul 31, 2015
1 parent f68f9a0 commit 87f22db
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vm/builtin/object.cpp
Expand Up @@ -137,7 +137,10 @@ namespace rubinius {
} else if(CompactLookupTable* clt = try_as<CompactLookupTable>(other->ivars())) {
ivars(state, clt->duplicate(state));
} else {
utilities::logger::warn("Object::copy_object: invalid ivars_ reference");
utilities::logger::warn(
"Object::copy_object: invalid ivars_ reference for %s",
other->class_object(state)->to_string(state, true).c_str()
);
};
}

Expand Down

0 comments on commit 87f22db

Please sign in to comment.