* 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
This commit is contained in:
parent
6df0853173
commit
e48adae2b3
@ -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>
|
Wed Dec 9 14:37:51 2015 Shugo Maeda <shugo@ruby-lang.org>
|
||||||
|
|
||||||
* doc/syntax/refinements.rdoc: remove outdated description.
|
* doc/syntax/refinements.rdoc: remove outdated description.
|
||||||
|
4
gc.c
4
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;
|
mark_stack_t *mstack = &objspace->mark_stack;
|
||||||
VALUE obj;
|
VALUE obj;
|
||||||
#if GC_ENABLE_INCREMENTAL_MARK
|
#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;
|
size_t popped_count = 0;
|
||||||
#endif
|
#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);
|
CLEAR_IN_BITMAP(GET_HEAP_MARKING_BITS(obj), obj);
|
||||||
popped_count++;
|
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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user