Reduce the potential contention caused by ResourceLeakDetector sampling

This commit is contained in:
Trustin Lee 2013-02-09 12:27:38 +09:00
parent 4df737864e
commit cedcee3f42

View File

@ -59,7 +59,7 @@ public final class ResourceLeakDetector<T> {
private long active;
private final AtomicBoolean loggedTooManyActive = new AtomicBoolean();
private static volatile long leakCheckCnt;
private long leakCheckCnt;
public ResourceLeakDetector(Class<?> resourceType) {
this(resourceType.getSimpleName());