< prev index next >

src/share/vm/runtime/interfaceSupport.cpp

Print this page

        

*** 104,122 **** Universe::heap()->collect(GCCause::_full_gc_alot); unsigned int invocations = Universe::heap()->total_full_collections(); // Compute new interval if (FullGCALotInterval > 1) { _fullgc_alot_counter = 1+(long)((double)FullGCALotInterval*os::random()/(max_jint+1.0)); ! if (PrintGCDetails && Verbose) { ! tty->print_cr("Full gc no: %u\tInterval: %ld", invocations, _fullgc_alot_counter); ! } } else { _fullgc_alot_counter = 1; } // Print progress message if (invocations % 100 == 0) { ! if (PrintGCDetails && Verbose) tty->print_cr("Full gc no: %u", invocations); } } else { if (ScavengeALot) _scavenge_alot_counter--; // Check if we should force a scavenge if (_scavenge_alot_counter == 0) { --- 104,120 ---- Universe::heap()->collect(GCCause::_full_gc_alot); unsigned int invocations = Universe::heap()->total_full_collections(); // Compute new interval if (FullGCALotInterval > 1) { _fullgc_alot_counter = 1+(long)((double)FullGCALotInterval*os::random()/(max_jint+1.0)); ! log_trace(gc)("Full gc no: %u\tInterval: %ld", invocations, _fullgc_alot_counter); } else { _fullgc_alot_counter = 1; } // Print progress message if (invocations % 100 == 0) { ! log_trace(gc)("Full gc no: %u", invocations); } } else { if (ScavengeALot) _scavenge_alot_counter--; // Check if we should force a scavenge if (_scavenge_alot_counter == 0) {
*** 124,142 **** Universe::heap()->collect(GCCause::_scavenge_alot); unsigned int invocations = Universe::heap()->total_collections() - Universe::heap()->total_full_collections(); // Compute new interval if (ScavengeALotInterval > 1) { _scavenge_alot_counter = 1+(long)((double)ScavengeALotInterval*os::random()/(max_jint+1.0)); ! if (PrintGCDetails && Verbose) { ! tty->print_cr("Scavenge no: %u\tInterval: %ld", invocations, _scavenge_alot_counter); ! } } else { _scavenge_alot_counter = 1; } // Print progress message if (invocations % 1000 == 0) { ! if (PrintGCDetails && Verbose) tty->print_cr("Scavenge no: %u", invocations); } } } } } --- 122,138 ---- Universe::heap()->collect(GCCause::_scavenge_alot); unsigned int invocations = Universe::heap()->total_collections() - Universe::heap()->total_full_collections(); // Compute new interval if (ScavengeALotInterval > 1) { _scavenge_alot_counter = 1+(long)((double)ScavengeALotInterval*os::random()/(max_jint+1.0)); ! log_trace(gc)("Scavenge no: %u\tInterval: %ld", invocations, _scavenge_alot_counter); } else { _scavenge_alot_counter = 1; } // Print progress message if (invocations % 1000 == 0) { ! log_trace(gc)("Scavenge no: %u", invocations); } } } } }
< prev index next >