ruby-changes:31667
From: ko1 <ko1@a...>
Date: Thu, 21 Nov 2013 14:07:13 +0900 (JST)
Subject: [ruby-changes:31667] ko1:r43746 (trunk): * gc.c (gc_marks_check): do not dump all refs.
ko1 2013-11-21 14:07:04 +0900 (Thu, 21 Nov 2013) New Revision: 43746 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43746 Log: * gc.c (gc_marks_check): do not dump all refs. * gc.c (allrefs_dump_i): fix output format. Modified files: trunk/ChangeLog trunk/gc.c Index: ChangeLog =================================================================== --- ChangeLog (revision 43745) +++ ChangeLog (revision 43746) @@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Thu Nov 21 14:06:02 2013 Koichi Sasada <ko1@a...> + + * gc.c (gc_marks_check): do not dump all refs. + + * gc.c (allrefs_dump_i): fix output format. + Thu Nov 21 13:43:07 2013 Koichi Sasada <ko1@a...> * gc.c: change RGENGC_CHECK_MODE (>= 2) logic. Index: gc.c =================================================================== --- gc.c (revision 43745) +++ gc.c (revision 43746) @@ -4230,7 +4230,7 @@ allrefs_dump_i(st_data_t k, st_data_t v, https://github.com/ruby/ruby/blob/trunk/gc.c#L4230 { VALUE obj = (VALUE)k; struct reflist *refs = (struct reflist *)v; - fprintf(stderr, "[allrefs_dump_i] %p (%s%s%s) <- ", + fprintf(stderr, "[allrefs_dump_i] %p (%s%s%s%s) <- ", (void *)obj, obj_type_name(obj), RVALUE_OLD_P(obj) ? "[O]" : "[Y]", RVALUE_SHADY(obj) ? "[S]" : "", @@ -4304,7 +4304,6 @@ static void https://github.com/ruby/ruby/blob/trunk/gc.c#L4304 gc_marks_check(rb_objspace_t *objspace, int (*checker_func)(ANYARGS), const char *checker_name) { objspace->rgengc.allrefs_table = objspace_allrefs(objspace); - allrefs_dump(objspace); st_foreach(objspace->rgengc.allrefs_table, checker_func, (st_data_t)objspace); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/