8183394: Remove unused G1RemSet::n_workers() method
authortschatzl
Tue, 04 Jul 2017 09:15:45 +0200
changeset 46613 f46b773946a2
parent 46612 c6b7c98e33ba
child 46614 ae1105fff9e4
8183394: Remove unused G1RemSet::n_workers() method Reviewed-by: mgerdin, ehelin
hotspot/src/share/vm/gc/g1/g1RemSet.hpp
hotspot/src/share/vm/gc/g1/g1RemSet.inline.hpp
--- a/hotspot/src/share/vm/gc/g1/g1RemSet.hpp	Mon Jul 03 17:43:16 2017 +0000
+++ b/hotspot/src/share/vm/gc/g1/g1RemSet.hpp	Tue Jul 04 09:15:45 2017 +0200
@@ -75,12 +75,9 @@
   // into the collection set or update the remembered set.
   void update_rem_set(DirtyCardQueue* into_cset_dcq, G1ParScanThreadState* pss, uint worker_i);
 
-protected:
   G1CollectedHeap* _g1;
   size_t _conc_refine_cards;
-  uint n_workers();
 
-protected:
   CardTableModRefBS*     _ct_bs;
   G1Policy*              _g1p;
   G1HotCardCache*        _hot_card_cache;
--- a/hotspot/src/share/vm/gc/g1/g1RemSet.inline.hpp	Mon Jul 03 17:43:16 2017 +0000
+++ b/hotspot/src/share/vm/gc/g1/g1RemSet.inline.hpp	Tue Jul 04 09:15:45 2017 +0200
@@ -30,10 +30,6 @@
 #include "gc/g1/heapRegionRemSet.hpp"
 #include "oops/oop.inline.hpp"
 
-inline uint G1RemSet::n_workers() {
-  return _g1->workers()->total_workers();
-}
-
 template <class T>
 inline void G1RemSet::par_write_ref(HeapRegion* from, T* p, uint tid) {
   oop obj = oopDesc::load_decode_heap_oop(p);