equal
deleted
inserted
replaced
451 // collection attempt failed with no corrective action as of yet. |
451 // collection attempt failed with no corrective action as of yet. |
452 bool incremental_collection_will_fail(bool consult_young) { |
452 bool incremental_collection_will_fail(bool consult_young) { |
453 // Assumes a 2-generation system; the first disjunct remembers if an |
453 // Assumes a 2-generation system; the first disjunct remembers if an |
454 // incremental collection failed, even when we thought (second disjunct) |
454 // incremental collection failed, even when we thought (second disjunct) |
455 // that it would not. |
455 // that it would not. |
456 assert(heap()->collector_policy()->is_two_generation_policy(), |
456 assert(heap()->collector_policy()->is_generation_policy(), |
457 "the following definition may not be suitable for an n(>2)-generation system"); |
457 "the following definition may not be suitable for an n(>2)-generation system"); |
458 return incremental_collection_failed() || |
458 return incremental_collection_failed() || |
459 (consult_young && !get_gen(0)->collection_attempt_is_safe()); |
459 (consult_young && !get_gen(0)->collection_attempt_is_safe()); |
460 } |
460 } |
461 |
461 |