mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
gc.c: fix typo
* gc.c (global_list): fix typo, capital 'L'. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
96815f1ebe
commit
ef3ff64933
1 changed files with 8 additions and 8 deletions
16
gc.c
16
gc.c
|
@ -637,7 +637,7 @@ VALUE *ruby_initial_gc_stress_ptr = &rb_objspace.gc_stress;
|
||||||
#define during_gc objspace->flags.during_gc
|
#define during_gc objspace->flags.during_gc
|
||||||
#define finalizing objspace->flags.finalizing
|
#define finalizing objspace->flags.finalizing
|
||||||
#define finalizer_table objspace->finalizer_table
|
#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 ruby_gc_stress objspace->gc_stress
|
||||||
#define monitor_level objspace->rgengc.monitor_level
|
#define monitor_level objspace->rgengc.monitor_level
|
||||||
#define monitored_object_table objspace->rgengc.monitored_object_table
|
#define monitored_object_table objspace->rgengc.monitored_object_table
|
||||||
|
@ -946,9 +946,9 @@ rb_objspace_free(rb_objspace_t *objspace)
|
||||||
objspace->profile.records = 0;
|
objspace->profile.records = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (global_List) {
|
if (global_list) {
|
||||||
struct gc_list *list, *next;
|
struct gc_list *list, *next;
|
||||||
for (list = global_List; list; list = next) {
|
for (list = global_list; list; list = next) {
|
||||||
next = list->next;
|
next = list->next;
|
||||||
xfree(list);
|
xfree(list);
|
||||||
}
|
}
|
||||||
|
@ -4235,7 +4235,7 @@ gc_mark_roots(rb_objspace_t *objspace, int full_mark, const char **categoryp)
|
||||||
|
|
||||||
/* mark protected global variables */
|
/* mark protected global variables */
|
||||||
MARK_CHECKPOINT("global_list");
|
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);
|
rb_gc_mark_maybe(*list->varptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5155,19 +5155,19 @@ rb_gc_register_address(VALUE *addr)
|
||||||
struct gc_list *tmp;
|
struct gc_list *tmp;
|
||||||
|
|
||||||
tmp = ALLOC(struct gc_list);
|
tmp = ALLOC(struct gc_list);
|
||||||
tmp->next = global_List;
|
tmp->next = global_list;
|
||||||
tmp->varptr = addr;
|
tmp->varptr = addr;
|
||||||
global_List = tmp;
|
global_list = tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
rb_gc_unregister_address(VALUE *addr)
|
rb_gc_unregister_address(VALUE *addr)
|
||||||
{
|
{
|
||||||
rb_objspace_t *objspace = &rb_objspace;
|
rb_objspace_t *objspace = &rb_objspace;
|
||||||
struct gc_list *tmp = global_List;
|
struct gc_list *tmp = global_list;
|
||||||
|
|
||||||
if (tmp->varptr == addr) {
|
if (tmp->varptr == addr) {
|
||||||
global_List = tmp->next;
|
global_list = tmp->next;
|
||||||
xfree(tmp);
|
xfree(tmp);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue