src/share/vm/memory/genCollectedHeap.hpp

Print this page
rev 4327 : [mq]: JDK-8008677

*** 466,477 **** // Assumes a 2-generation system; the first disjunct remembers if an // incremental collection failed, even when we thought (second disjunct) // that it would not. assert(heap()->collector_policy()->is_two_generation_policy(), "the following definition may not be suitable for an n(>2)-generation system"); ! return incremental_collection_failed() || ! (consult_young && !get_gen(0)->collection_attempt_is_safe()); } // If a generation bails out of an incremental collection, // it sets this flag. bool incremental_collection_failed() const { --- 466,478 ---- // Assumes a 2-generation system; the first disjunct remembers if an // incremental collection failed, even when we thought (second disjunct) // that it would not. assert(heap()->collector_policy()->is_two_generation_policy(), "the following definition may not be suitable for an n(>2)-generation system"); ! Generation *gen = get_gen(0); ! return gen == NULL || incremental_collection_failed() || ! (consult_young && !gen->collection_attempt_is_safe()); } // If a generation bails out of an incremental collection, // it sets this flag. bool incremental_collection_failed() const {