8210714: ZGC: ZWeakRootsIterator should no longer call reset/finish_dead_counter()

Reviewed-by: eosterlund
This commit is contained in:
Per Lidén 2018-09-14 14:44:11 +02:00
parent 26af771191
commit 0f8cbbc54c

View File

@ -252,12 +252,10 @@ ZWeakRootsIterator::ZWeakRootsIterator() :
_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) {