--- a/src/hotspot/share/gc/g1/g1Policy.hpp Wed Nov 20 14:16:29 2019 +0100
+++ b/src/hotspot/share/gc/g1/g1Policy.hpp Thu Nov 21 11:42:54 2019 +0100
@@ -184,9 +184,6 @@
G1CollectionSetChooser* cset_chooser() const;
- // The number of bytes copied during the GC.
- size_t _bytes_copied_during_gc;
-
// Stash a pointer to the g1 heap.
G1CollectedHeap* _g1h;
@@ -320,7 +317,7 @@
// Record the start and end of an evacuation pause.
void record_collection_pause_start(double start_time_sec);
- virtual void record_collection_pause_end(double pause_time_ms, size_t heap_used_bytes_before_gc);
+ virtual void record_collection_pause_end(double pause_time_ms);
// Record the start and end of a full collection.
void record_full_collection_start();
@@ -339,17 +336,6 @@
void print_phases();
- // Record how much space we copied during a GC. This is typically
- // called when a GC alloc region is being retired.
- void record_bytes_copied_during_gc(size_t bytes) {
- _bytes_copied_during_gc += bytes;
- }
-
- // The amount of space we copied during a GC.
- size_t bytes_copied_during_gc() const {
- return _bytes_copied_during_gc;
- }
-
bool next_gc_should_be_mixed(const char* true_action_str,
const char* false_action_str) const;