8210714: ZGC: ZWeakRootsIterator should no longer call reset/finish_dead_counter()
authorpliden
Fri, 14 Sep 2018 14:44:11 +0200
changeset 51744 1cb25b6589e9
parent 51743 47466ac8dcf0
child 51745 90c1dcdebc64
8210714: ZGC: ZWeakRootsIterator should no longer call reset/finish_dead_counter() Reviewed-by: eosterlund
src/hotspot/share/gc/z/zRootsIterator.cpp
--- a/src/hotspot/share/gc/z/zRootsIterator.cpp	Fri Sep 14 14:44:11 2018 +0200
+++ b/src/hotspot/share/gc/z/zRootsIterator.cpp	Fri Sep 14 14:44:11 2018 +0200
@@ -252,12 +252,10 @@
     _jfr_weak(this) {
   assert(SafepointSynchronize::is_at_safepoint(), "Should be at safepoint");
   ZStatTimer timer(ZSubPhasePauseWeakRootsSetup);
-  StringTable::reset_dead_counter();
 }
 
 ZWeakRootsIterator::~ZWeakRootsIterator() {
   ZStatTimer timer(ZSubPhasePauseWeakRootsTeardown);
-  StringTable::finish_dead_counter();
 }
 
 void ZWeakRootsIterator::do_jvmti_weak_export(BoolObjectClosure* is_alive, OopClosure* cl) {