зеркало из https://github.com/github/ruby.git
* 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] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
541e1aff20
Коммит
55e6e9e384
|
@ -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>
|
Sun Feb 19 03:00:30 2012 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* test/dbm/test_dbm.rb (test_dbmfile_suffix): check magic numbers.
|
* test/dbm/test_dbm.rb (test_dbmfile_suffix): check magic numbers.
|
||||||
|
|
3
gc.c
3
gc.c
|
@ -2627,8 +2627,7 @@ gc_clear_mark_on_sweep_slots(rb_objspace_t *objspace)
|
||||||
if (objspace->heap.sweep_slots) {
|
if (objspace->heap.sweep_slots) {
|
||||||
while (heaps_increment(objspace));
|
while (heaps_increment(objspace));
|
||||||
while (objspace->heap.sweep_slots) {
|
while (objspace->heap.sweep_slots) {
|
||||||
scan = objspace->heap.sweep_slots;
|
slot_sweep(objspace, objspace->heap.sweep_slots);
|
||||||
gc_clear_slot_bits(scan);
|
|
||||||
objspace->heap.sweep_slots = objspace->heap.sweep_slots->next;
|
objspace->heap.sweep_slots = objspace->heap.sweep_slots->next;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче