Class DeltaBaseCache
- java.lang.Object
-
- org.eclipse.jgit.internal.storage.file.DeltaBaseCache
-
class DeltaBaseCache extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
DeltaBaseCache.Entry
private static class
DeltaBaseCache.Slot
-
Field Summary
Fields Modifier and Type Field Description private DeltaBaseCache.Slot[]
cache
private static int
CACHE_SZ
(package private) static java.lang.ref.SoftReference<DeltaBaseCache.Entry>
DEAD
private static int
defaultMaxByteCount
private DeltaBaseCache.Slot
lruHead
private DeltaBaseCache.Slot
lruTail
private int
maxByteCount
private int
openByteCount
-
Constructor Summary
Constructors Constructor Description DeltaBaseCache()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
clearEntry(DeltaBaseCache.Slot e)
(package private) DeltaBaseCache.Entry
get(PackFile pack, long position)
private static int
hash(long position)
private void
moveToHead(DeltaBaseCache.Slot e)
(package private) static void
reconfigure(WindowCacheConfig cfg)
private void
releaseMemory()
(package private) void
store(PackFile pack, long position, byte[] data, int objectType)
private void
unlink(DeltaBaseCache.Slot e)
-
-
-
Field Detail
-
CACHE_SZ
private static final int CACHE_SZ
- See Also:
- Constant Field Values
-
DEAD
static final java.lang.ref.SoftReference<DeltaBaseCache.Entry> DEAD
-
defaultMaxByteCount
private static volatile int defaultMaxByteCount
-
maxByteCount
private final int maxByteCount
-
cache
private final DeltaBaseCache.Slot[] cache
-
lruHead
private DeltaBaseCache.Slot lruHead
-
lruTail
private DeltaBaseCache.Slot lruTail
-
openByteCount
private int openByteCount
-
-
Method Detail
-
hash
private static int hash(long position)
-
reconfigure
static void reconfigure(WindowCacheConfig cfg)
-
get
DeltaBaseCache.Entry get(PackFile pack, long position)
-
store
void store(PackFile pack, long position, byte[] data, int objectType)
-
releaseMemory
private void releaseMemory()
-
moveToHead
private void moveToHead(DeltaBaseCache.Slot e)
-
unlink
private void unlink(DeltaBaseCache.Slot e)
-
clearEntry
private void clearEntry(DeltaBaseCache.Slot e)
-
-