* 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
This commit is contained in:
ko1 2013-09-30 02:20:28 +00:00
parent 7f25c6513a
commit 1d90d0ced9
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,10 @@
Mon Sep 30 11:18:04 2013 Koichi Sasada <ko1@atdot.net>
* 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].
Mon Sep 30 10:40:20 2013 Shugo Maeda <shugo@ruby-lang.org>
* vm_method.c (rb_undef): raise a NameError if the original method

2
gc.c
View File

@ -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;
}