1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* gc.c (rb_gc_call_finalizer_at_exit): add

gc_verify_internal_consistency() when RGENGC_CHECK_MODE >= 2.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2014-06-03 09:02:21 +00:00
parent 2e437f8b45
commit 75604b077e
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Tue Jun 3 18:01:27 2014 Koichi Sasada <ko1@atdot.net>
* 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@atdot.net>
* gc.c: change the counting method for young objects.

3
gc.c
View file

@ -2208,6 +2208,9 @@ force_chain_object(st_data_t key, st_data_t val, st_data_t arg)
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);
}