mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* gc.c : remove a unused function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6b627e6cd6
commit
a22bb18e3e
2 changed files with 4 additions and 16 deletions
|
@ -1,3 +1,7 @@
|
|||
Fri Nov 30 08:09:56 2012 Narihiro Nakamura <authornari@gmail.com>
|
||||
|
||||
* gc.c : remove a unused function.
|
||||
|
||||
Fri Nov 30 07:46:42 2012 Narihiro Nakamura <authornari@gmail.com>
|
||||
|
||||
* gc.c (rb_objspace_call_finalizer): finalize_deferred may free up
|
||||
|
|
16
gc.c
16
gc.c
|
@ -1452,22 +1452,6 @@ rb_gc_finalize_deferred(void)
|
|||
ATOMIC_SET(finalizing, 0);
|
||||
}
|
||||
|
||||
static int
|
||||
chain_finalized_object(st_data_t key, st_data_t val, st_data_t arg)
|
||||
{
|
||||
RVALUE *p = (RVALUE *)key, **final_list = (RVALUE **)arg;
|
||||
if ((p->as.basic.flags & FL_FINALIZE) == FL_FINALIZE &&
|
||||
!MARKED_IN_BITMAP(GET_HEAP_BITMAP(p), p)) {
|
||||
if (BUILTIN_TYPE(p) != T_ZOMBIE) {
|
||||
p->as.free.flags = T_ZOMBIE;
|
||||
RDATA(p)->dfree = 0;
|
||||
}
|
||||
p->as.free.next = *final_list;
|
||||
*final_list = p;
|
||||
}
|
||||
return ST_CONTINUE;
|
||||
}
|
||||
|
||||
struct force_finalize_list {
|
||||
VALUE obj;
|
||||
VALUE table;
|
||||
|
|
Loading…
Add table
Reference in a new issue