From a4ea6ad339c133e0b45ac759c578ebeffbf3ce77 Mon Sep 17 00:00:00 2001 From: Slava Pestov Date: Fri, 9 Oct 2009 03:20:06 -0500 Subject: [PATCH] vm: record bytes/objects copied again --- vm/collector.hpp | 4 ++++ 1 file changed, 4 insertions(+) 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; }