Commit 391807b7 authored by Ryan Scott's avatar Ryan Scott

Changed the counting so that only objects that are alive are added to the object counts.

parent e36a0275
......@@ -35,11 +35,11 @@ void os_count_object_type(mrb_state *mrb, struct RBasic* obj, void *data)
{
struct os_count_struct* obj_count;
obj_count = (struct os_count_struct*)(data);
obj_count->counts[obj->tt]++;
if (is_dead(mrb, obj)) {
obj_count->freed++;
} else {
obj_count->counts[obj->tt]++;
obj_count->total++;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment