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

gc.c: disable gc_rest after finalization

* gc.c (rb_objspace_call_finalizer): disable provisionally gc_rest
  as it breaks RVALUE consistency.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2015-02-08 01:54:08 +00:00
parent 67e5129a3a
commit f16b6fc5ab

2
gc.c
View file

@ -2624,11 +2624,13 @@ rb_objspace_call_finalizer(rb_objspace_t *objspace)
finalizer_table = 0; finalizer_table = 0;
ATOMIC_SET(finalizing, 0); ATOMIC_SET(finalizing, 0);
#if 0
/* /*
* finish any lazy sweeps that may have been started * finish any lazy sweeps that may have been started
* when finalizing the objects in the heap * when finalizing the objects in the heap
*/ */
gc_rest(objspace); gc_rest(objspace);
#endif
} }
static inline int static inline int