< prev index next >

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

Print this page
rev 51152 : [mq]: gcbuildoptionspatch

*** 2171,2181 **** --- 2171,2183 ---- } } // Support for compaction void CompactibleFreeListSpace::prepare_for_compaction(CompactPoint* cp) { + #if INCLUDE_SERIALGC scan_and_forward(this, cp); + #endif // Prepare_for_compaction() uses the space between live objects // so that later phase can skip dead space quickly. So verification // of the free lists doesn't work after. }
*** 2184,2199 **** --- 2186,2205 ---- // based on the amount of live data in the generation // (i.e., if 0, bail out) may be used. // Cannot test used() == 0 here because the free lists have already // been mangled by the compaction. + #if INCLUDE_SERIALGC scan_and_adjust_pointers(this); + #endif // See note about verification in prepare_for_compaction(). } void CompactibleFreeListSpace::compact() { + #if INCLUDE_SERIALGC scan_and_compact(this); + #endif } // Fragmentation metric = 1 - [sum of (fbs**2) / (sum of fbs)**2] // where fbs is free block sizes double CompactibleFreeListSpace::flsFrag() const {
< prev index next >