vm: fix formatting

db4
Slava Pestov 2009-10-09 02:57:04 -05:00
parent f6d4551da5
commit 07deeb407c
1 changed files with 28 additions and 27 deletions

View File

@ -67,36 +67,37 @@ void factor_vm::garbage_collection(cell collecting_gen_, bool growing_data_heap_
/* Keep trying to GC higher and higher generations until we don't run out /* Keep trying to GC higher and higher generations until we don't run out
of space */ of space */
if(setjmp(current_gc->gc_unwind)) if(setjmp(current_gc->gc_unwind))
{ {
/* We come back here if a generation is full */ /* We come back here if a generation is full */
/* We have no older generations we can try collecting, so we /* We have no older generations we can try collecting, so we
resort to growing the data heap */ resort to growing the data heap */
if(current_gc->collecting_tenured_p()) if(current_gc->collecting_tenured_p())
{ {
current_gc->growing_data_heap = true; current_gc->growing_data_heap = true;
/* see the comment in unmark_marked() */ /* Since we start tracing again, any previously
code->unmark_marked(); marked code blocks must be re-marked and re-traced */
} code->clear_mark_bits();
/* we try collecting aging space twice before going on to }
collect tenured */ /* we try collecting aging space twice before going on to
else if(current_gc->collecting_aging_p() collect tenured */
&& !current_gc->collecting_aging_again) else if(current_gc->collecting_aging_p()
{ && !current_gc->collecting_aging_again)
current_gc->collecting_aging_again = true; {
} current_gc->collecting_aging_again = true;
/* Collect the next oldest generation */ }
else /* Collect the next oldest generation */
{ else
current_gc->collecting_gen++; {
} current_gc->collecting_gen++;
} }
}
if(current_gc->collecting_nursery_p()) if(current_gc->collecting_nursery_p())
collect_nursery(); collect_nursery();
else if(current_gc->collecting_aging_p()) else if(current_gc->collecting_aging_p())
{ {
if(current_gc->collecting_aging_again) if(current_gc->collecting_aging_again)
collect_to_tenured(); collect_to_tenured();