ruby-changes:51376
From: normal <ko1@a...>
Date: Wed, 6 Jun 2018 07:01:56 +0900 (JST)
Subject: [ruby-changes:51376] normal:r63582 (trunk): encoding.c: remove rb_gc_mark_encodings
normal 2018-06-06 07:01:43 +0900 (Wed, 06 Jun 2018) New Revision: 63582 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63582 Log: encoding.c: remove rb_gc_mark_encodings rb_gc_mark_encodings has been empty for a decade (since r17875 / 28b216ac45262819f8bc7be0b1417a707974f94b). Just remove it and its only caller in gc.c Modified files: trunk/encoding.c trunk/gc.c trunk/internal.h Index: internal.h =================================================================== --- internal.h (revision 63581) +++ internal.h (revision 63582) @@ -1189,7 +1189,6 @@ void Init_ext(void); https://github.com/ruby/ruby/blob/trunk/internal.h#L1189 /* encoding.c */ ID rb_id_encoding(void); -void rb_gc_mark_encodings(void); #ifdef RUBY_ENCODING_H rb_encoding *rb_enc_get_from_index(int index); rb_encoding *rb_enc_check_str(VALUE str1, VALUE str2); Index: encoding.c =================================================================== --- encoding.c (revision 63581) +++ encoding.c (revision 63582) @@ -260,11 +260,6 @@ rb_find_encoding(VALUE enc) https://github.com/ruby/ruby/blob/trunk/encoding.c#L260 return rb_enc_from_index(idx); } -void -rb_gc_mark_encodings(void) -{ -} - static int enc_table_expand(int newsize) { Index: gc.c =================================================================== --- gc.c (revision 63581) +++ gc.c (revision 63582) @@ -4850,9 +4850,6 @@ gc_mark_roots(rb_objspace_t *objspace, c https://github.com/ruby/ruby/blob/trunk/gc.c#L4850 MARK_CHECKPOINT("machine_context"); mark_current_machine_context(objspace, ec); - MARK_CHECKPOINT("encodings"); - rb_gc_mark_encodings(); - /* mark protected global variables */ MARK_CHECKPOINT("global_list"); for (list = global_list; list; list = list->next) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/