< prev index next >

src/hotspot/share/gc/cms/cmsHeap.cpp

Print this page

        

*** 75,85 **** jint status = GenCollectedHeap::initialize(); if (status != JNI_OK) return status; // If we are running CMS, create the collector responsible // for collecting the CMS generations. - assert(collector_policy()->is_concurrent_mark_sweep_policy(), "must be CMS policy"); if (!create_cms_collector()) { return JNI_ENOMEM; } return JNI_OK; --- 75,84 ----
*** 150,164 **** } bool CMSHeap::create_cms_collector() { assert(old_gen()->kind() == Generation::ConcurrentMarkSweep, "Unexpected generation kinds"); - assert(gen_policy()->is_concurrent_mark_sweep_policy(), "Unexpected policy type"); CMSCollector* collector = new CMSCollector((ConcurrentMarkSweepGeneration*) old_gen(), rem_set(), ! gen_policy()->as_concurrent_mark_sweep_policy()); if (collector == NULL || !collector->completed_initialization()) { if (collector) { delete collector; // Be nice in embedded situation } --- 149,162 ---- } bool CMSHeap::create_cms_collector() { assert(old_gen()->kind() == Generation::ConcurrentMarkSweep, "Unexpected generation kinds"); CMSCollector* collector = new CMSCollector((ConcurrentMarkSweepGeneration*) old_gen(), rem_set(), ! (ConcurrentMarkSweepPolicy*) gen_policy()); if (collector == NULL || !collector->completed_initialization()) { if (collector) { delete collector; // Be nice in embedded situation }
< prev index next >