summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-09-30 02:20:28 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-09-30 02:20:28 +0000
commit1d90d0ced96691fb19c136698b341d6705ac6b30 (patch)
tree80c29b4afa3a8922049375416e58892a5fdb59dd /gc.c
parent7f25c6513aef3f4aae39f309ce17707465f4458a (diff)
* gc.c (rb_gc_disable): do rest_sweep() before disable GC.
This fix may solve a failure of TestTracepointObj#test_tracks_objspace_events [test/-ext-/tracepoint/test_tracepoint.rb:43]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gc.c b/gc.c
index 5e18b9a7dc..634bf3ca54 100644
--- a/gc.c
+++ b/gc.c
@@ -4598,6 +4598,8 @@ rb_gc_disable(void)
rb_objspace_t *objspace = &rb_objspace;
int old = dont_gc;
+ gc_rest_sweep(objspace);
+
dont_gc = TRUE;
return old ? Qtrue : Qfalse;
}