changeset 58930:7eb922e55148

8243307: Shenandoah: remove ShCollectionSet::live_data Reviewed-by: rkennke
author shade
date Wed, 22 Apr 2020 11:45:27 +0200
parents eee3372536ce
children 37fb240579e5
files src/hotspot/share/gc/shenandoah/shenandoahCollectionSet.cpp src/hotspot/share/gc/shenandoah/shenandoahCollectionSet.hpp
diffstat 2 files changed, 1 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/gc/shenandoah/shenandoahCollectionSet.cpp	Tue Apr 21 19:44:17 2020 +0200
+++ b/src/hotspot/share/gc/shenandoah/shenandoahCollectionSet.cpp	Wed Apr 22 11:45:27 2020 +0200
@@ -41,7 +41,6 @@
   _biased_cset_map(_map_space.base()),
   _heap(heap),
   _garbage(0),
-  _live_data(0),
   _used(0),
   _region_count(0),
   _current_index(0) {
@@ -85,9 +84,8 @@
   assert(Thread::current()->is_VM_thread(), "Must be VMThread");
   assert(!is_in(r), "Already in collection set");
   _cset_map[r->index()] = 1;
-  _region_count ++;
+  _region_count++;
   _garbage += r->garbage();
-  _live_data += r->get_live_data_bytes();
   _used += r->used();
 
   // Update the region status too. State transition would be checked internally.
@@ -105,7 +103,6 @@
 #endif
 
   _garbage = 0;
-  _live_data = 0;
   _used = 0;
 
   _region_count = 0;
--- a/src/hotspot/share/gc/shenandoah/shenandoahCollectionSet.hpp	Tue Apr 21 19:44:17 2020 +0200
+++ b/src/hotspot/share/gc/shenandoah/shenandoahCollectionSet.hpp	Wed Apr 22 11:45:27 2020 +0200
@@ -43,7 +43,6 @@
   ShenandoahHeap* const _heap;
 
   size_t                _garbage;
-  size_t                _live_data;
   size_t                _used;
   size_t                _region_count;
 
@@ -78,7 +77,6 @@
   void print_on(outputStream* out) const;
 
   size_t used()      const { return _used; }
-  size_t live_data() const { return _live_data; }
   size_t garbage()   const { return _garbage;   }
   void clear();