Transition the minor/major GC stats to the counters infrastructure.
[mono.git] / mono / metadata / boehm-gc.c
index 67561c6a0aeb331a4dd0fb085d5bc05514f495ca..132dd7d25b970b71540091079427765f19cfff08 100644 (file)
@@ -412,7 +412,7 @@ on_gc_notification (GCEventType event)
        if (e == MONO_GC_EVENT_START) {
                if (mono_perfcounters)
                        mono_perfcounters->gc_collections0++;
-               mono_stats.major_gc_count ++;
+               gc_stats.major_gc_count ++;
                gc_start_time = mono_100ns_ticks ();
        } else if (e == MONO_GC_EVENT_END) {
                if (mono_perfcounters) {
@@ -423,7 +423,7 @@ on_gc_notification (GCEventType event)
                        mono_perfcounters->gc_reserved_bytes = heap_size;
                        mono_perfcounters->gc_gen0size = heap_size;
                }
-               mono_stats.major_gc_time_usecs += (mono_100ns_ticks () - gc_start_time) / 10;
+               gc_stats.major_gc_time_usecs += (mono_100ns_ticks () - gc_start_time) / 10;
                mono_trace_message (MONO_TRACE_GC, "gc took %d usecs", (mono_100ns_ticks () - gc_start_time) / 10);
        }
        mono_profiler_gc_event (e, 0);