src/hotspot/share/gc/g1/g1RemSet.cpp
changeset 58652 9b67dd88a931
parent 58508 d6058bd73982
child 58679 9c3209ff7550
child 59233 bd9dba789919
equal deleted inserted replaced
58650:d068b1e534de 58652:9b67dd88a931
   485 
   485 
   486 G1RemSet::G1RemSet(G1CollectedHeap* g1h,
   486 G1RemSet::G1RemSet(G1CollectedHeap* g1h,
   487                    G1CardTable* ct,
   487                    G1CardTable* ct,
   488                    G1HotCardCache* hot_card_cache) :
   488                    G1HotCardCache* hot_card_cache) :
   489   _scan_state(new G1RemSetScanState()),
   489   _scan_state(new G1RemSetScanState()),
   490   _prev_period_summary(),
   490   _prev_period_summary(false),
   491   _g1h(g1h),
   491   _g1h(g1h),
   492   _ct(ct),
   492   _ct(ct),
   493   _g1p(_g1h->policy()),
   493   _g1p(_g1h->policy()),
   494   _hot_card_cache(hot_card_cache) {
   494   _hot_card_cache(hot_card_cache) {
   495 }
   495 }
  1402 
  1402 
  1403 void G1RemSet::print_periodic_summary_info(const char* header, uint period_count) {
  1403 void G1RemSet::print_periodic_summary_info(const char* header, uint period_count) {
  1404   if ((G1SummarizeRSetStatsPeriod > 0) && log_is_enabled(Trace, gc, remset) &&
  1404   if ((G1SummarizeRSetStatsPeriod > 0) && log_is_enabled(Trace, gc, remset) &&
  1405       (period_count % G1SummarizeRSetStatsPeriod == 0)) {
  1405       (period_count % G1SummarizeRSetStatsPeriod == 0)) {
  1406 
  1406 
  1407     G1RemSetSummary current(this);
  1407     G1RemSetSummary current;
  1408     _prev_period_summary.subtract_from(&current);
  1408     _prev_period_summary.subtract_from(&current);
  1409 
  1409 
  1410     Log(gc, remset) log;
  1410     Log(gc, remset) log;
  1411     log.trace("%s", header);
  1411     log.trace("%s", header);
  1412     ResourceMark rm;
  1412     ResourceMark rm;
  1419 
  1419 
  1420 void G1RemSet::print_summary_info() {
  1420 void G1RemSet::print_summary_info() {
  1421   Log(gc, remset, exit) log;
  1421   Log(gc, remset, exit) log;
  1422   if (log.is_trace()) {
  1422   if (log.is_trace()) {
  1423     log.trace(" Cumulative RS summary");
  1423     log.trace(" Cumulative RS summary");
  1424     G1RemSetSummary current(this);
  1424     G1RemSetSummary current;
  1425     ResourceMark rm;
  1425     ResourceMark rm;
  1426     LogStream ls(log.trace());
  1426     LogStream ls(log.trace());
  1427     current.print_on(&ls);
  1427     current.print_on(&ls);
  1428   }
  1428   }
  1429 }
  1429 }