ruby-changes:34690
From: nobu <ko1@a...>
Date: Thu, 10 Jul 2014 12:24:33 +0900 (JST)
Subject: [ruby-changes:34690] nobu:r46773 (trunk): gc.c: fix typo
nobu 2014-07-10 12:24:17 +0900 (Thu, 10 Jul 2014) New Revision: 46773 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46773 Log: gc.c: fix typo * gc.c (global_list): fix typo, capital 'L'. Modified files: trunk/gc.c Index: gc.c =================================================================== --- gc.c (revision 46772) +++ gc.c (revision 46773) @@ -637,7 +637,7 @@ VALUE *ruby_initial_gc_stress_ptr = &rb_ https://github.com/ruby/ruby/blob/trunk/gc.c#L637 #define during_gc objspace->flags.during_gc #define finalizing objspace->flags.finalizing #define finalizer_table objspace->finalizer_table -#define global_List objspace->global_list +#define global_list objspace->global_list #define ruby_gc_stress objspace->gc_stress #define monitor_level objspace->rgengc.monitor_level #define monitored_object_table objspace->rgengc.monitored_object_table @@ -946,9 +946,9 @@ rb_objspace_free(rb_objspace_t *objspace https://github.com/ruby/ruby/blob/trunk/gc.c#L946 objspace->profile.records = 0; } - if (global_List) { + if (global_list) { struct gc_list *list, *next; - for (list = global_List; list; list = next) { + for (list = global_list; list; list = next) { next = list->next; xfree(list); } @@ -4235,7 +4235,7 @@ gc_mark_roots(rb_objspace_t *objspace, i https://github.com/ruby/ruby/blob/trunk/gc.c#L4235 /* mark protected global variables */ MARK_CHECKPOINT("global_list"); - for (list = global_List; list; list = list->next) { + for (list = global_list; list; list = list->next) { rb_gc_mark_maybe(*list->varptr); } @@ -5155,19 +5155,19 @@ rb_gc_register_address(VALUE *addr) https://github.com/ruby/ruby/blob/trunk/gc.c#L5155 struct gc_list *tmp; tmp = ALLOC(struct gc_list); - tmp->next = global_List; + tmp->next = global_list; tmp->varptr = addr; - global_List = tmp; + global_list = tmp; } void rb_gc_unregister_address(VALUE *addr) { rb_objspace_t *objspace = &rb_objspace; - struct gc_list *tmp = global_List; + struct gc_list *tmp = global_list; if (tmp->varptr == addr) { - global_List = tmp->next; + global_list = tmp->next; xfree(tmp); return; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/