зеркало из https://github.com/github/ruby.git
* gc.c: do not dump the last record
* gc.c (gc_profile_dump_on): do not dump the last record, for some reason. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
09c3482399
Коммит
95170c704c
|
@ -1,3 +1,8 @@
|
|||
Thu May 23 16:58:01 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* 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@ruby-lang.org>
|
||||
|
||||
* gc.c (gc_profile_dump_on): use size_t to get rid of overflow and
|
||||
|
|
1
gc.c
1
gc.c
|
@ -5002,6 +5002,7 @@ gc_profile_dump_on(VALUE out, VALUE (*append)(VALUE, VALUE))
|
|||
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"));
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче