Skip to content

Commit 87f22db

Browse files
author
Yorick Peterse
committedJul 31, 2015
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.
1 parent f68f9a0 commit 87f22db

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎vm/builtin/object.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,10 @@ namespace rubinius {
137137
} else if(CompactLookupTable* clt = try_as<CompactLookupTable>(other->ivars())) {
138138
ivars(state, clt->duplicate(state));
139139
} else {
140-
utilities::logger::warn("Object::copy_object: invalid ivars_ reference");
140+
utilities::logger::warn(
141+
"Object::copy_object: invalid ivars_ reference for %s",
142+
other->class_object(state)->to_string(state, true).c_str()
143+
);
141144
};
142145
}
143146

0 commit comments

Comments
 (0)
Please sign in to comment.