Skip to content

Commit

Permalink
* gc.c (gc_clear_mark_on_sweep_slots): uses slot_sweep() for
Browse files Browse the repository at this point in the history
  unsweeped slots, because some dead objects might be marked in
  next the mark phase by false pointers.  [ruby-core:42672]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
authorNari committed Feb 19, 2012
1 parent 541e1af commit 55e6e9e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
Sun Feb 19 11:53:35 2012 Narihiro Nakamura <authornari@gmail.com>

* gc.c (gc_clear_mark_on_sweep_slots): uses slot_sweep() for
unsweeped slots, because some dead objects might be marked in
next the mark phase by false pointers. [ruby-core:42672]

Sun Feb 19 03:00:30 2012 Tanaka Akira <akr@fsij.org>

* test/dbm/test_dbm.rb (test_dbmfile_suffix): check magic numbers.
Expand Down
3 changes: 1 addition & 2 deletions gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2627,8 +2627,7 @@ gc_clear_mark_on_sweep_slots(rb_objspace_t *objspace)
if (objspace->heap.sweep_slots) {
while (heaps_increment(objspace));
while (objspace->heap.sweep_slots) {
scan = objspace->heap.sweep_slots;
gc_clear_slot_bits(scan);
slot_sweep(objspace, objspace->heap.sweep_slots);
objspace->heap.sweep_slots = objspace->heap.sweep_slots->next;
}
}
Expand Down

0 comments on commit 55e6e9e

Please sign in to comment.