ruby-changes:34256
From: ko1 <ko1@a...>
Date: Tue, 3 Jun 2014 18:02:27 +0900 (JST)
Subject: [ruby-changes:34256] ko1:r46337 (trunk): * gc.c (rb_gc_call_finalizer_at_exit): add
ko1 2014-06-03 18:02:21 +0900 (Tue, 03 Jun 2014) New Revision: 46337 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46337 Log: * gc.c (rb_gc_call_finalizer_at_exit): add gc_verify_internal_consistency() when RGENGC_CHECK_MODE >= 2. Modified files: trunk/ChangeLog trunk/gc.c Index: ChangeLog =================================================================== --- ChangeLog (revision 46336) +++ ChangeLog (revision 46337) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Tue Jun 3 18:01:27 2014 Koichi Sasada <ko1@a...> + + * gc.c (rb_gc_call_finalizer_at_exit): add + gc_verify_internal_consistency() when RGENGC_CHECK_MODE >= 2. + Tue Jun 3 17:54:21 2014 Koichi Sasada <ko1@a...> * gc.c: change the counting method for young objects. Index: gc.c =================================================================== --- gc.c (revision 46336) +++ gc.c (revision 46337) @@ -2208,6 +2208,9 @@ force_chain_object(st_data_t key, st_dat https://github.com/ruby/ruby/blob/trunk/gc.c#L2208 void rb_gc_call_finalizer_at_exit(void) { +#if RGENGC_CHECK_MODE >= 2 + gc_verify_internal_consistency(Qnil); +#endif rb_objspace_call_finalizer(&rb_objspace); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/