This closes #1018
This commit is contained in:
commit
ab122376e6
|
@ -637,7 +637,7 @@ public class PagingStoreImpl implements PagingStore {
|
||||||
// To be used when the memory is oversized either by local settings or global settings on blocking addresses
|
// To be used when the memory is oversized either by local settings or global settings on blocking addresses
|
||||||
private static final class OverSizedRunnable implements Runnable {
|
private static final class OverSizedRunnable implements Runnable {
|
||||||
|
|
||||||
private boolean ran;
|
private final AtomicBoolean ran = new AtomicBoolean(false);
|
||||||
|
|
||||||
private final Runnable runnable;
|
private final Runnable runnable;
|
||||||
|
|
||||||
|
@ -646,11 +646,9 @@ public class PagingStoreImpl implements PagingStore {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public synchronized void run() {
|
public void run() {
|
||||||
if (!ran) {
|
if (ran.compareAndSet(false, true)) {
|
||||||
runnable.run();
|
runnable.run();
|
||||||
|
|
||||||
ran = true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue