summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-03 09:02:21 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-03 09:02:21 +0000
commit75604b077e665cefe239db67033d521463798be6 (patch)
tree9a7b47130b3088ff9e6301de601c5b68ae41af86
parent2e437f8b45ac2399011b32c6bacb68603c6728a5 (diff)
* 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
-rw-r--r--ChangeLog5
-rw-r--r--gc.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 3db48a36fb6..bb6811d7808 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/gc.c b/gc.c
index 99a8b7a8bee..728bf55ba19 100644
--- a/gc.c
+++ b/gc.c
@@ -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);
}