vm: record bytes/objects copied again

Slava Pestov 2009-10-09 03:20:06 -05:00
parent 266aaf17b7
commit 33b35ce82e
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;
}