ruby-changes:28846
From: nobu <ko1@a...>
Date: Thu, 23 May 2013 16:58:16 +0900 (JST)
Subject: [ruby-changes:28846] nobu:r40898 (trunk): * gc.c: do not dump the last record
nobu 2013-05-23 16:58:06 +0900 (Thu, 23 May 2013) New Revision: 40898 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=40898 Log: * gc.c: do not dump the last record * gc.c (gc_profile_dump_on): do not dump the last record, for some reason. Modified files: trunk/ChangeLog trunk/gc.c Index: ChangeLog =================================================================== --- ChangeLog (revision 40897) +++ ChangeLog (revision 40898) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Thu May 23 16:58:01 2013 Nobuyoshi Nakada <nobu@r...> + + * gc.c (gc_profile_dump_on): do not dump the last record, for some + reason. + Wed May 22 16:50:18 2013 Nobuyoshi Nakada <nobu@r...> * gc.c (gc_profile_dump_on): use size_t to get rid of overflow and Index: gc.c =================================================================== --- gc.c (revision 40897) +++ gc.c (revision 40898) @@ -5002,6 +5002,7 @@ gc_profile_dump_on(VALUE out, VALUE (*ap https://github.com/ruby/ruby/blob/trunk/gc.c#L5002 size_t i; const gc_profile_record *record; + --count; /* do not dump the last record */ append(out, rb_sprintf("GC %"PRIuSIZE" invokes.\n", objspace->count)); append(out, rb_str_new_cstr("Index Invoke Time(sec) Use Size(byte) Total Size(byte) Total Object GC Time(ms)\n")); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/