comparison src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp @ 1087:23b9a8d315fc

6902701: G1: protect debugging code related to 6898948 with a debug flag Summary: Protected stats dump with a new develop flag; other than for the dump, reconciled product and non-product behaviour in face of the error. Reviewed-by: tonyp
author ysr
date Thu, 19 Nov 2009 10:19:19 -0800
parents 89f1b9ae8991
children 3fc996d4edd2
comparison
equal deleted inserted replaced
1086:89f1b9ae8991 1087:23b9a8d315fc
1526 _recent_gc_times_ms->dump(); 1526 _recent_gc_times_ms->dump();
1527 gclog_or_tty->print_cr("(End Time=%3.3f) Recent GC End Times (s):", end_time_sec); 1527 gclog_or_tty->print_cr("(End Time=%3.3f) Recent GC End Times (s):", end_time_sec);
1528 _recent_prev_end_times_for_all_gcs_sec->dump(); 1528 _recent_prev_end_times_for_all_gcs_sec->dump();
1529 gclog_or_tty->print_cr("GC = %3.3f, Interval = %3.3f, Ratio = %3.3f", 1529 gclog_or_tty->print_cr("GC = %3.3f, Interval = %3.3f, Ratio = %3.3f",
1530 _recent_gc_times_ms->sum(), interval_ms, recent_avg_pause_time_ratio()); 1530 _recent_gc_times_ms->sum(), interval_ms, recent_avg_pause_time_ratio());
1531 // TEMPORARY: In debug mode, terminate the JVM, so nightly testing explicitly 1531 // In debug mode, terminate the JVM if the user wants to debug at this point.
1532 // flags the sighting by failing the test. 1532 assert(!G1FailOnFPError, "Debugging data for CR 6898948 has been dumped above");
1533 assert(false, "Debugging data for CR 6898948 has been dumped above"); 1533 #endif // !PRODUCT
1534 #else // PRODUCT 1534 // Clip ratio between 0.0 and 1.0, and continue. This will be fixed in
1535 // Clip ratio between 0.0 and 1.0 1535 // CR 6902692 by redoing the manner in which the ratio is incrementally computed.
1536 if (_recent_avg_pause_time_ratio < 0.0) { 1536 if (_recent_avg_pause_time_ratio < 0.0) {
1537 _recent_avg_pause_time_ratio = 0.0; 1537 _recent_avg_pause_time_ratio = 0.0;
1538 } else { 1538 } else {
1539 assert(_recent_avg_pause_time_ratio - 1.0 > 0.0, "Ctl-point invariant"); 1539 assert(_recent_avg_pause_time_ratio - 1.0 > 0.0, "Ctl-point invariant");
1540 _recent_avg_pause_time_ratio = 1.0; 1540 _recent_avg_pause_time_ratio = 1.0;
1541 } 1541 }
1542 #endif // PRODUCT
1543 } 1542 }
1544 } 1543 }
1545 1544
1546 if (G1PolicyVerbose > 1) { 1545 if (G1PolicyVerbose > 1) {
1547 gclog_or_tty->print_cr(" Recording collection pause(%d)", _n_pauses); 1546 gclog_or_tty->print_cr(" Recording collection pause(%d)", _n_pauses);