8210714: ZGC: ZWeakRootsIterator should no longer call reset/finish_dead_counter()
Reviewed-by: eosterlund
--- 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) {