mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8064865: Remove the debug funciontality RotateCMSCollectionTypes for CMS
Reviewed-by: jmasa, kbarrett, ysr
This commit is contained in:
parent
4b60638d85
commit
2da855a259
3 changed files with 0 additions and 34 deletions
|
@ -192,7 +192,6 @@ ConcurrentMarkSweepGeneration::ConcurrentMarkSweepGeneration(
|
|||
FreeBlockDictionary<FreeChunk>::DictionaryChoice dictionaryChoice) :
|
||||
CardGeneration(rs, initial_byte_size, level, ct),
|
||||
_dilatation_factor(((double)MinChunkSize)/((double)(CollectedHeap::min_fill_size()))),
|
||||
_debug_concurrent_cycle(true),
|
||||
_did_compact(false)
|
||||
{
|
||||
HeapWord* bottom = (HeapWord*) _virtual_space.low();
|
||||
|
@ -1245,14 +1244,6 @@ bool CMSCollector::shouldConcurrentCollect() {
|
|||
return true;
|
||||
}
|
||||
|
||||
// For debugging purposes, change the type of collection.
|
||||
// Rotate between concurrent and stop-the-world full GCs.
|
||||
NOT_PRODUCT(
|
||||
if (RotateCMSCollectionTypes) {
|
||||
return _cmsGen->debug_concurrent_cycle();
|
||||
}
|
||||
)
|
||||
|
||||
FreelistLocker x(this);
|
||||
// ------------------------------------------------------------------
|
||||
// Print out lots of information which affects the initiation of
|
||||
|
@ -5830,17 +5821,6 @@ void ConcurrentMarkSweepGeneration::update_gc_stats(int current_level,
|
|||
}
|
||||
}
|
||||
|
||||
void ConcurrentMarkSweepGeneration::rotate_debug_collection_type() {
|
||||
if (PrintGCDetails && Verbose) {
|
||||
if (_debug_concurrent_cycle) {
|
||||
gclog_or_tty->print_cr("Rotate from concurrent to STW collections");
|
||||
} else {
|
||||
gclog_or_tty->print_cr("Rotate from STW to concurrent collections");
|
||||
}
|
||||
}
|
||||
_debug_concurrent_cycle = !_debug_concurrent_cycle;
|
||||
}
|
||||
|
||||
void CMSCollector::sweepWork(ConcurrentMarkSweepGeneration* gen) {
|
||||
// We iterate over the space(s) underlying this generation,
|
||||
// checking the mark bit map to see if the bits corresponding
|
||||
|
@ -5961,12 +5941,6 @@ void CMSCollector::reset(bool concurrent) {
|
|||
_collectorState = Idling;
|
||||
}
|
||||
|
||||
NOT_PRODUCT(
|
||||
if (RotateCMSCollectionTypes) {
|
||||
_cmsGen->rotate_debug_collection_type();
|
||||
}
|
||||
)
|
||||
|
||||
register_gc_end();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue