vm: record bytes/objects copied again

db4
Slava Pestov 2009-10-09 03:20:06 -05:00
parent 07deeb407c
commit a4ea6ad339
1 changed files with 4 additions and 0 deletions

View File

@ -80,6 +80,10 @@ template<typename TargetGeneration, typename Policy> struct collector {
memcpy(newpointer,untagged,size);
untagged->h.forward_to(newpointer);
generation_statistics *stats = &myvm->gc_stats.generations[current_gc->collecting_gen];
stats->object_count++;
stats->bytes_copied += size;
return newpointer;
}