Reduce the potential contention caused by ResourceLeakDetector sampling
This commit is contained in:
parent
4df737864e
commit
cedcee3f42
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user