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

remove obsolete rb_gc_finalize_deferred().

rb_gc_finalize_deferred() is remained for compatibility with
C-extensions. However, this function is no longer working
from Ruby 2.4 (crash with SEGV immediately).
So remove it completely.
This commit is contained in:
Koichi Sasada 2019-05-28 15:57:20 +09:00
parent 2562b7d7cd
commit 8a2b497e3b
2 changed files with 0 additions and 8 deletions

7
gc.c
View file

@ -3140,13 +3140,6 @@ gc_finalize_deferred(void *dmy)
ATOMIC_SET(finalizing, 0);
}
/* TODO: to keep compatibility, maybe unused. */
void
rb_gc_finalize_deferred(void)
{
gc_finalize_deferred(0);
}
static void
gc_finalize_deferred_register(rb_objspace_t *objspace)
{

View file

@ -520,7 +520,6 @@ VALUE rb_gc_location(VALUE);
void rb_gc_force_recycle(VALUE);
void rb_gc(void);
void rb_gc_copy_finalizer(VALUE,VALUE);
void rb_gc_finalize_deferred(void);
void rb_gc_call_finalizer_at_exit(void);
VALUE rb_gc_enable(void);
VALUE rb_gc_disable(void);