forked from I2P_Developers/i2p.i2p
volatiles
This commit is contained in:
@@ -104,10 +104,10 @@ public final class ByteCache {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** list of available and available entries */
|
/** list of available and available entries */
|
||||||
private Queue<ByteArray> _available;
|
private volatile Queue<ByteArray> _available;
|
||||||
private int _maxCached;
|
private int _maxCached;
|
||||||
private final int _entrySize;
|
private final int _entrySize;
|
||||||
private long _lastOverflow;
|
private volatile long _lastOverflow;
|
||||||
|
|
||||||
/** do we actually want to cache? Warning - setting to false may NPE, this should be fixed or removed */
|
/** do we actually want to cache? Warning - setting to false may NPE, this should be fixed or removed */
|
||||||
private static final boolean _cache = true;
|
private static final boolean _cache = true;
|
||||||
|
Reference in New Issue
Block a user