Skip to content

Commit a826936

Browse files
committed
Implement rb_gc_impl_gc_count
1 parent 3ae27df commit a826936

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Diff for: gc/mmtk.c

+8-1
Original file line numberDiff line numberDiff line change
@@ -1128,7 +1128,14 @@ rb_gc_impl_get_total_time(void *objspace_ptr)
11281128
return objspace->total_gc_time;
11291129
}
11301130

1131-
size_t rb_gc_impl_gc_count(void *objspace_ptr) { }
1131+
size_t
1132+
rb_gc_impl_gc_count(void *objspace_ptr)
1133+
{
1134+
struct objspace *objspace = objspace_ptr;
1135+
1136+
return objspace->gc_count;
1137+
}
1138+
11321139
VALUE rb_gc_impl_latest_gc_info(void *objspace_ptr, VALUE key) { }
11331140

11341141
enum gc_stat_sym {

0 commit comments

Comments
 (0)