diff --git a/ChangeLog b/ChangeLog index d43e6dc465..ee6b167c0e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,7 +2,7 @@ Tue Nov 5 13:37:19 2013 Koichi Sasada * gc.c: add support to estimate increase of oldspace memory usage. This is another approach to solve an issue discussed at r43530. - This feature is disabled as default. + This feature is disabled as default. This feature measures an increment of memory consumption by oldgen objects. It measures memory consumption for each objects when diff --git a/gc.c b/gc.c index 4984f890d6..292cb74793 100644 --- a/gc.c +++ b/gc.c @@ -790,7 +790,7 @@ RVALUE_YOUNG_P(VALUE obj) static inline void RVALUE_PROMOTE_YOUNG(VALUE obj) -{ +{ check_gen_consistency(obj); if (RGENGC_CHECK_MODE && !RVALUE_YOUNG_P(obj)) rb_bug("RVALUE_PROMOTE_YOUNG: %p (%s) is not young object.", (void *)obj, obj_type_name(obj)); MARK_IN_BITMAP(GET_HEAP_OLDGEN_BITS(obj), obj); @@ -2891,7 +2891,7 @@ gc_after_sweep(rb_objspace_t *objspace) if (0) { fprintf(stderr, "%d\t%d\t%d\t%d\t%d\t%d\t%d\n", (int)rb_gc_count(), - (int)objspace->profile.major_gc_count, + (int)objspace->profile.major_gc_count, (int)objspace->profile.minor_gc_count, (int)objspace->profile.promote_infant_count, #if RGENGC_THREEGEN