Skip to content

Commit 7444f41

Browse files
rename rb_gc_obj_free_on_sweep -> rb_gc_obj_needs_cleanup_p
1 parent 8e73aa7 commit 7444f41

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

gc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1257,7 +1257,7 @@ rb_gc_handle_weak_references(VALUE obj)
12571257
* for the majority of simple objects.
12581258
*/
12591259
bool
1260-
rb_gc_obj_free_on_sweep_p(VALUE obj)
1260+
rb_gc_obj_needs_cleanup_p(VALUE obj)
12611261
{
12621262
VALUE flags = RBASIC(obj)->flags;
12631263

gc/default/default.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3521,7 +3521,7 @@ gc_sweep_plane(rb_objspace_t *objspace, rb_heap_t *heap, uintptr_t p, bits_t bit
35213521
#undef CHECK
35223522
#endif
35233523

3524-
if (!rb_gc_obj_free_on_sweep_p(vp)) {
3524+
if (!rb_gc_obj_needs_cleanup_p(vp)) {
35253525
if (RB_UNLIKELY(objspace->hook_events & RUBY_INTERNAL_EVENT_FREEOBJ)) {
35263526
rb_gc_event_hook(vp, RUBY_INTERNAL_EVENT_FREEOBJ);
35273527
}

gc/gc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ MODULAR_GC_FN void rb_gc_after_updating_jit_code(void);
100100
MODULAR_GC_FN bool rb_gc_obj_shareable_p(VALUE);
101101
MODULAR_GC_FN void rb_gc_rp(VALUE);
102102
MODULAR_GC_FN void rb_gc_handle_weak_references(VALUE obj);
103-
MODULAR_GC_FN bool rb_gc_obj_free_on_sweep_p(VALUE obj);
103+
MODULAR_GC_FN bool rb_gc_obj_needs_cleanup_p(VALUE obj);
104104

105105
#if USE_MODULAR_GC
106106
MODULAR_GC_FN bool rb_gc_event_hook_required_p(rb_event_flag_t event);

0 commit comments

Comments
 (0)