diff -r 642365ee2b92 -r ab8716d193bb hotspot/src/share/vm/gc/g1/g1RemSet.cpp --- a/hotspot/src/share/vm/gc/g1/g1RemSet.cpp Wed Jul 12 09:49:05 2017 +0200 +++ b/hotspot/src/share/vm/gc/g1/g1RemSet.cpp Wed Jul 12 12:25:12 2017 +0200 @@ -290,9 +290,6 @@ _prev_period_summary(), _into_cset_dirty_card_queue_set(false) { - if (log_is_enabled(Trace, gc, remset)) { - _prev_period_summary.initialize(this); - } // Initialize the card queue set used to hold cards containing // references into the collection set. _into_cset_dirty_card_queue_set.initialize(NULL, // Should never be called by the Java code @@ -790,12 +787,7 @@ if ((G1SummarizeRSetStatsPeriod > 0) && log_is_enabled(Trace, gc, remset) && (period_count % G1SummarizeRSetStatsPeriod == 0)) { - if (!_prev_period_summary.initialized()) { - _prev_period_summary.initialize(this); - } - - G1RemSetSummary current; - current.initialize(this); + G1RemSetSummary current(this); _prev_period_summary.subtract_from(¤t); Log(gc, remset) log; @@ -812,7 +804,6 @@ if (log.is_trace()) { log.trace(" Cumulative RS summary"); G1RemSetSummary current; - current.initialize(this); ResourceMark rm; current.print_on(log.trace_stream()); }