< prev index next >

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

Print this page
rev 47415 : 8179387: Factor out CMS specific code from GenCollectedHeap into its own subclass

*** 21,37 **** * questions. * */ #include "precompiled.hpp" #include "gc/cms/cmsLockVerifier.hpp" #include "gc/cms/compactibleFreeListSpace.hpp" #include "gc/cms/concurrentMarkSweepGeneration.inline.hpp" #include "gc/cms/concurrentMarkSweepThread.hpp" #include "gc/shared/blockOffsetTable.inline.hpp" #include "gc/shared/collectedHeap.inline.hpp" - #include "gc/shared/genCollectedHeap.hpp" #include "gc/shared/space.inline.hpp" #include "gc/shared/spaceDecorator.hpp" #include "logging/log.hpp" #include "logging/logStream.hpp" #include "memory/allocation.inline.hpp" --- 21,37 ---- * questions. * */ #include "precompiled.hpp" + #include "gc/cms/cmsHeap.hpp" #include "gc/cms/cmsLockVerifier.hpp" #include "gc/cms/compactibleFreeListSpace.hpp" #include "gc/cms/concurrentMarkSweepGeneration.inline.hpp" #include "gc/cms/concurrentMarkSweepThread.hpp" #include "gc/shared/blockOffsetTable.inline.hpp" #include "gc/shared/collectedHeap.inline.hpp" #include "gc/shared/space.inline.hpp" #include "gc/shared/spaceDecorator.hpp" #include "logging/log.hpp" #include "logging/logStream.hpp" #include "memory/allocation.inline.hpp"
*** 152,162 **** do { // switch to next compaction space cp->space->set_compaction_top(compact_top); cp->space = cp->space->next_compaction_space(); if (cp->space == NULL) { ! cp->gen = GenCollectedHeap::heap()->young_gen(); assert(cp->gen != NULL, "compaction must succeed"); cp->space = cp->gen->first_compaction_space(); assert(cp->space != NULL, "generation must have a first compaction space"); } compact_top = cp->space->bottom(); --- 152,162 ---- do { // switch to next compaction space cp->space->set_compaction_top(compact_top); cp->space = cp->space->next_compaction_space(); if (cp->space == NULL) { ! cp->gen = CMSHeap::heap()->young_gen(); assert(cp->gen != NULL, "compaction must succeed"); cp->space = cp->gen->first_compaction_space(); assert(cp->space != NULL, "generation must have a first compaction space"); } compact_top = cp->space->bottom();
*** 2296,2306 **** VerifyAllOopsClosure cl(_collector, this, span, past_remark, _collector->markBitMap()); // Iterate over all oops in the heap. Uses the _no_header version // since we are not interested in following the klass pointers. ! GenCollectedHeap::heap()->oop_iterate_no_header(&cl); } if (VerifyObjectStartArray) { // Verify the block offset table _bt.verify(); --- 2296,2306 ---- VerifyAllOopsClosure cl(_collector, this, span, past_remark, _collector->markBitMap()); // Iterate over all oops in the heap. Uses the _no_header version // since we are not interested in following the klass pointers. ! CMSHeap::heap()->oop_iterate_no_header(&cl); } if (VerifyObjectStartArray) { // Verify the block offset table _bt.verify();
< prev index next >