Fix typos in gc.c and gc.rb

This commit is contained in:
hi 2025-12-05 23:56:32 +09:00 committed by Hiroshi SHIBATA
parent 59314911a1
commit 25f277abe4
Notes: git 2025-12-09 07:46:05 +00:00
2 changed files with 2 additions and 2 deletions

2
gc.c
View File

@ -1816,7 +1816,7 @@ id2ref_tbl_mark(void *data)
// It's very unlikely, but if enough object ids were generated, keys may be T_BIGNUM // It's very unlikely, but if enough object ids were generated, keys may be T_BIGNUM
rb_mark_set(table); rb_mark_set(table);
} }
// We purposedly don't mark values, as they are weak references. // We purposely don't mark values, as they are weak references.
// rb_gc_obj_free_vm_weak_references takes care of cleaning them up. // rb_gc_obj_free_vm_weak_references takes care of cleaning them up.
} }

2
gc.rb
View File

@ -37,7 +37,7 @@ module GC
# interleaved with program execution both before the method returns and afterward; # interleaved with program execution both before the method returns and afterward;
# therefore sweeping may not be completed before the return. # therefore sweeping may not be completed before the return.
# #
# Note that these keword arguments are implementation- and version-dependent, # Note that these keyword arguments are implementation- and version-dependent,
# are not guaranteed to be future-compatible, # are not guaranteed to be future-compatible,
# and may be ignored in some implementations. # and may be ignored in some implementations.
def self.start full_mark: true, immediate_mark: true, immediate_sweep: true def self.start full_mark: true, immediate_mark: true, immediate_sweep: true