summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-09 05:49:27 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-09 05:49:27 +0000
commite48adae2b3e7dfab79fb5a72467a559749edebd5 (patch)
treee938c051fcc32f1589e401bf17f4c699bd0fc40b
parent6df08531734fcafdd3165d76f97d6cee7f29f0dd (diff)
* gc.c (gc_mark_stacked_objects): fix typo.
reported by XIE Zhibang. [Bug #11763] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--gc.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 1a1755e3c9..eb9c051b8c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Dec 9 14:45:27 2015 Koichi Sasada <ko1@atdot.net>
+
+ * gc.c (gc_mark_stacked_objects): fix typo.
+ reported by XIE Zhibang. [Bug #11763]
+
Wed Dec 9 14:37:51 2015 Shugo Maeda <shugo@ruby-lang.org>
* doc/syntax/refinements.rdoc: remove outdated description.
diff --git a/gc.c b/gc.c
index 2ac4386376..fc8963c10a 100644
--- a/gc.c
+++ b/gc.c
@@ -4515,7 +4515,7 @@ gc_mark_stacked_objects(rb_objspace_t *objspace, int incremental, size_t count)
mark_stack_t *mstack = &objspace->mark_stack;
VALUE obj;
#if GC_ENABLE_INCREMENTAL_MARK
- size_t marked_slots_at_the_beggining = objspace->marked_slots;
+ size_t marked_slots_at_the_beginning = objspace->marked_slots;
size_t popped_count = 0;
#endif
@@ -4535,7 +4535,7 @@ gc_mark_stacked_objects(rb_objspace_t *objspace, int incremental, size_t count)
CLEAR_IN_BITMAP(GET_HEAP_MARKING_BITS(obj), obj);
popped_count++;
- if (popped_count + (objspace->marked_slots - marked_slots_at_the_beggining) > count) {
+ if (popped_count + (objspace->marked_slots - marked_slots_at_the_beginning) > count) {
break;
}
}