diff --git a/vm/collector.hpp b/vm/collector.hpp index 2f1c34bd8c..bb6c4042b9 100644 --- a/vm/collector.hpp +++ b/vm/collector.hpp @@ -80,6 +80,10 @@ template 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; }