summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-10 03:24:17 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-10 03:24:17 +0000
commitef3ff649335c27035c75db9dfc844cdf4e102340 (patch)
treea55ec271b532af7528ca2d3a42ab46d184e04b77 /gc.c
parent96815f1ebe945a802ca2e35a1bb6e3b564339732 (diff)
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
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gc.c b/gc.c
index 23b1e075f4..c7e306c2e3 100644
--- a/gc.c
+++ b/gc.c
@@ -637,7 +637,7 @@ VALUE *ruby_initial_gc_stress_ptr = &rb_objspace.gc_stress;
#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)
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, int full_mark, const char **categoryp)
/* 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)
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;
}