diff options
author | Nobuyoshi Nakada <[email protected]> | 2019-08-12 17:44:30 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2019-08-13 09:47:08 +0900 |
commit | 0c2d81dada88b5a3946c3162187df4223bfe6b4f (patch) | |
tree | ae1fc5e5aef4fcbd0a422c476ba026249fc646e3 /gc.c | |
parent | aac4d9d6c7e6b6b0742f3941b574f6006ccb5672 (diff) |
Renamed ruby_finalize_{0,1}
And pass rb_execution_context_t as an argument.
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 13 |
1 files changed, 3 insertions, 10 deletions
@@ -847,7 +847,6 @@ void rb_vm_update_references(void *ptr); void rb_gcdebug_print_obj_condition(VALUE obj); -static void rb_objspace_call_finalizer(rb_objspace_t *objspace); static VALUE define_final0(VALUE obj, VALUE block); static void negative_size_allocation_error(const char *); @@ -3231,20 +3230,14 @@ force_chain_object(st_data_t key, st_data_t val, st_data_t arg) } void -rb_gc_call_finalizer_at_exit(void) -{ -#if RGENGC_CHECK_MODE >= 2 - gc_verify_internal_consistency(Qnil); -#endif - rb_objspace_call_finalizer(&rb_objspace); -} - -static void rb_objspace_call_finalizer(rb_objspace_t *objspace) { RVALUE *p, *pend; size_t i; +#if RGENGC_CHECK_MODE >= 2 + gc_verify_internal_consistency(Qnil); +#endif gc_rest(objspace); if (ATOMIC_EXCHANGE(finalizing, 1)) return; |