diff options
author | S-H-GAMELINKS <[email protected]> | 2023-05-15 17:22:01 +0900 |
---|---|---|
committer | Aaron Patterson <[email protected]> | 2023-05-19 01:05:43 +0900 |
commit | 0c3f699268a9b3d41b5023425a419c8b5cf00dbb () | |
tree | ead3c1d8dfa8b1729af36be3f03125f27734107f /variable.c | |
parent | 2df5a697e2726a11f0441b13fb5c73dd549837c8 (diff) |
Introduce gc_mark_table macro
Notes: Merged: https://.com/ruby/ruby/pull/7813
-rw-r--r-- | variable.c | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -501,12 +501,13 @@ mark_global_entry(VALUE v, void *ignored) return ID_TABLE_CONTINUE; } void rb_gc_mark_global_tbl(void) { - if (rb_global_tbl) { - rb_id_table_foreach_values(rb_global_tbl, mark_global_entry, 0); - } } static enum rb_id_table_iterator_result @@ -522,9 +523,7 @@ update_global_entry(VALUE v, void *ignored) void rb_gc_update_global_tbl(void) { - if (rb_global_tbl) { - rb_id_table_foreach_values(rb_global_tbl, update_global_entry, 0); - } } static ID |