public final class sun.awt.image.ImageCache
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: sun.awt.image.ImageCache
super_class: java.lang.Object
{
private final java.util.LinkedHashMap<sun.awt.image.ImageCache$PixelsKey, sun.awt.image.ImageCache$ImageSoftReference> map;
descriptor: Ljava/util/LinkedHashMap;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/LinkedHashMap<Lsun/awt/image/ImageCache$PixelsKey;Lsun/awt/image/ImageCache$ImageSoftReference;>;
private final int maxPixelCount;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private int currentPixelCount;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private final java.util.concurrent.locks.ReadWriteLock lock;
descriptor: Ljava/util/concurrent/locks/ReadWriteLock;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.ref.ReferenceQueue<java.awt.Image> referenceQueue;
descriptor: Ljava/lang/ref/ReferenceQueue;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/lang/ref/ReferenceQueue<Ljava/awt/Image;>;
public static sun.awt.image.ImageCache getInstance();
descriptor: ()Lsun/awt/image/ImageCache;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc Lsun/awt/image/ImageCache;
1: invokedynamic get()Ljava/util/function/Supplier;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
sun/awt/image/ImageCache.lambda$0()Lsun/awt/image/ImageCache; (6)
()Lsun/awt/image/ImageCache;
2: invokestatic sun.awt.AppContext.getSoftReferenceValue:(Ljava/lang/Object;Ljava/util/function/Supplier;)Ljava/lang/Object;
checkcast sun.awt.image.ImageCache
areturn
LocalVariableTable:
Start End Slot Name Signature
void <init>(int);
descriptor: (I)V
flags: (0x0000)
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
2: new java.util.LinkedHashMap
dup
bipush 16
ldc 0.75
iconst_1
invokespecial java.util.LinkedHashMap.<init>:(IFZ)V
putfield sun.awt.image.ImageCache.map:Ljava/util/LinkedHashMap;
3: aload 0
iconst_0
putfield sun.awt.image.ImageCache.currentPixelCount:I
4: aload 0
new java.util.concurrent.locks.ReentrantReadWriteLock
dup
invokespecial java.util.concurrent.locks.ReentrantReadWriteLock.<init>:()V
putfield sun.awt.image.ImageCache.lock:Ljava/util/concurrent/locks/ReadWriteLock;
5: aload 0
new java.lang.ref.ReferenceQueue
dup
invokespecial java.lang.ref.ReferenceQueue.<init>:()V
putfield sun.awt.image.ImageCache.referenceQueue:Ljava/lang/ref/ReferenceQueue;
6: aload 0
iload 1
putfield sun.awt.image.ImageCache.maxPixelCount:I
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/awt/image/ImageCache;
0 8 1 maxPixelCount I
MethodParameters:
Name Flags
maxPixelCount final
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc 2097152
invokespecial sun.awt.image.ImageCache.<init>:(I)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/awt/image/ImageCache;
public void flush();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.awt.image.ImageCache.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
1: aload 0
getfield sun.awt.image.ImageCache.map:Ljava/util/LinkedHashMap;
invokevirtual java.util.LinkedHashMap.clear:()V
2: goto 6
StackMap locals:
StackMap stack: java.lang.Throwable
3: astore 1
4: aload 0
getfield sun.awt.image.ImageCache.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
5: aload 1
athrow
6: StackMap locals:
StackMap stack:
aload 0
getfield sun.awt.image.ImageCache.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
7: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/awt/image/ImageCache;
Exception table:
from to target type
1 3 3 any
public java.awt.Image getImage(sun.awt.image.ImageCache$PixelsKey);
descriptor: (Lsun/awt/image/ImageCache$PixelsKey;)Ljava/awt/Image;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.awt.image.ImageCache.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
1: aload 0
getfield sun.awt.image.ImageCache.map:Ljava/util/LinkedHashMap;
aload 1
invokevirtual java.util.LinkedHashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast sun.awt.image.ImageCache$ImageSoftReference
astore 2
start local 2 2: goto 6
end local 2 StackMap locals:
StackMap stack: java.lang.Throwable
3: astore 3
4: aload 0
getfield sun.awt.image.ImageCache.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
5: aload 3
athrow
start local 2 6: StackMap locals: sun.awt.image.ImageCache$ImageSoftReference
StackMap stack:
aload 0
getfield sun.awt.image.ImageCache.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
7: aload 2
ifnonnull 8
aconst_null
goto 9
StackMap locals:
StackMap stack:
8: aload 2
invokevirtual sun.awt.image.ImageCache$ImageSoftReference.get:()Ljava/lang/Object;
checkcast java.awt.Image
StackMap locals:
StackMap stack: java.awt.Image
9: areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/awt/image/ImageCache;
0 10 1 key Lsun/awt/image/ImageCache$PixelsKey;
2 3 2 ref Lsun/awt/image/ImageCache$ImageSoftReference;
6 10 2 ref Lsun/awt/image/ImageCache$ImageSoftReference;
Exception table:
from to target type
1 3 3 any
MethodParameters:
Name Flags
key final
public void setImage(sun.awt.image.ImageCache$PixelsKey, java.awt.Image);
descriptor: (Lsun/awt/image/ImageCache$PixelsKey;Ljava/awt/Image;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=9, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield sun.awt.image.ImageCache.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
1: aload 0
getfield sun.awt.image.ImageCache.map:Ljava/util/LinkedHashMap;
aload 1
invokevirtual java.util.LinkedHashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast sun.awt.image.ImageCache$ImageSoftReference
astore 3
start local 3 2: aload 3
ifnull 8
3: aload 3
invokevirtual sun.awt.image.ImageCache$ImageSoftReference.get:()Ljava/lang/Object;
ifnull 6
4: aload 0
getfield sun.awt.image.ImageCache.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
5: return
6: StackMap locals: sun.awt.image.ImageCache$ImageSoftReference
StackMap stack:
aload 0
dup
getfield sun.awt.image.ImageCache.currentPixelCount:I
aload 1
invokeinterface sun.awt.image.ImageCache$PixelsKey.getPixelCount:()I
isub
putfield sun.awt.image.ImageCache.currentPixelCount:I
7: aload 0
getfield sun.awt.image.ImageCache.map:Ljava/util/LinkedHashMap;
aload 1
invokevirtual java.util.LinkedHashMap.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
8: StackMap locals:
StackMap stack:
aload 1
invokeinterface sun.awt.image.ImageCache$PixelsKey.getPixelCount:()I
istore 4
start local 4 9: aload 0
dup
getfield sun.awt.image.ImageCache.currentPixelCount:I
iload 4
iadd
putfield sun.awt.image.ImageCache.currentPixelCount:I
10: aload 0
getfield sun.awt.image.ImageCache.currentPixelCount:I
aload 0
getfield sun.awt.image.ImageCache.maxPixelCount:I
if_icmple 15
11: goto 14
12: StackMap locals: int
StackMap stack:
aload 0
getfield sun.awt.image.ImageCache.map:Ljava/util/LinkedHashMap;
aload 3
getfield sun.awt.image.ImageCache$ImageSoftReference.key:Lsun/awt/image/ImageCache$PixelsKey;
invokevirtual java.util.LinkedHashMap.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
13: aload 0
dup
getfield sun.awt.image.ImageCache.currentPixelCount:I
aload 3
getfield sun.awt.image.ImageCache$ImageSoftReference.key:Lsun/awt/image/ImageCache$PixelsKey;
invokeinterface sun.awt.image.ImageCache$PixelsKey.getPixelCount:()I
isub
putfield sun.awt.image.ImageCache.currentPixelCount:I
14: StackMap locals:
StackMap stack:
aload 0
getfield sun.awt.image.ImageCache.referenceQueue:Ljava/lang/ref/ReferenceQueue;
invokevirtual java.lang.ref.ReferenceQueue.poll:()Ljava/lang/ref/Reference;
checkcast sun.awt.image.ImageCache$ImageSoftReference
dup
astore 3
ifnonnull 12
15: StackMap locals:
StackMap stack:
aload 0
getfield sun.awt.image.ImageCache.currentPixelCount:I
aload 0
getfield sun.awt.image.ImageCache.maxPixelCount:I
if_icmple 25
16: aload 0
getfield sun.awt.image.ImageCache.map:Ljava/util/LinkedHashMap;
invokevirtual java.util.LinkedHashMap.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 5
start local 5 17: goto 24
18: StackMap locals: java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
19: astore 6
start local 6 20: aload 5
invokeinterface java.util.Iterator.remove:()V
21: aload 6
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast sun.awt.image.ImageCache$ImageSoftReference
invokevirtual sun.awt.image.ImageCache$ImageSoftReference.get:()Ljava/lang/Object;
checkcast java.awt.Image
astore 7
start local 7 22: aload 7
ifnull 23
aload 7
invokevirtual java.awt.Image.flush:()V
23: StackMap locals: java.util.Map$Entry java.awt.Image
StackMap stack:
aload 0
dup
getfield sun.awt.image.ImageCache.currentPixelCount:I
aload 6
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast sun.awt.image.ImageCache$ImageSoftReference
getfield sun.awt.image.ImageCache$ImageSoftReference.key:Lsun/awt/image/ImageCache$PixelsKey;
invokeinterface sun.awt.image.ImageCache$PixelsKey.getPixelCount:()I
isub
putfield sun.awt.image.ImageCache.currentPixelCount:I
end local 7 end local 6 24: StackMap locals:
StackMap stack:
aload 0
getfield sun.awt.image.ImageCache.currentPixelCount:I
aload 0
getfield sun.awt.image.ImageCache.maxPixelCount:I
if_icmple 25
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 18
end local 5 25: StackMap locals:
StackMap stack:
aload 0
getfield sun.awt.image.ImageCache.map:Ljava/util/LinkedHashMap;
aload 1
new sun.awt.image.ImageCache$ImageSoftReference
dup
aload 1
aload 2
aload 0
getfield sun.awt.image.ImageCache.referenceQueue:Ljava/lang/ref/ReferenceQueue;
invokespecial sun.awt.image.ImageCache$ImageSoftReference.<init>:(Lsun/awt/image/ImageCache$PixelsKey;Ljava/awt/Image;Ljava/lang/ref/ReferenceQueue;)V
invokevirtual java.util.LinkedHashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 4 end local 3 26: goto 30
StackMap locals: sun.awt.image.ImageCache sun.awt.image.ImageCache$PixelsKey java.awt.Image
StackMap stack: java.lang.Throwable
27: astore 8
28: aload 0
getfield sun.awt.image.ImageCache.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
29: aload 8
athrow
30: StackMap locals:
StackMap stack:
aload 0
getfield sun.awt.image.ImageCache.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
31: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 32 0 this Lsun/awt/image/ImageCache;
0 32 1 key Lsun/awt/image/ImageCache$PixelsKey;
0 32 2 image Ljava/awt/Image;
2 26 3 ref Lsun/awt/image/ImageCache$ImageSoftReference;
9 26 4 newPixelCount I
17 25 5 mapIter Ljava/util/Iterator<Ljava/util/Map$Entry<Lsun/awt/image/ImageCache$PixelsKey;Lsun/awt/image/ImageCache$ImageSoftReference;>;>;
20 24 6 entry Ljava/util/Map$Entry<Lsun/awt/image/ImageCache$PixelsKey;Lsun/awt/image/ImageCache$ImageSoftReference;>;
22 24 7 img Ljava/awt/Image;
Exception table:
from to target type
1 4 27 any
6 27 27 any
MethodParameters:
Name Flags
key final
image final
private static sun.awt.image.ImageCache lambda$0();
descriptor: ()Lsun/awt/image/ImageCache;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=0, args_size=0
0: new sun.awt.image.ImageCache
dup
invokespecial sun.awt.image.ImageCache.<init>:()V
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "ImageCache.java"
NestMembers:
sun.awt.image.ImageCache$ImageSoftReference sun.awt.image.ImageCache$PixelsKey
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract Entry = java.util.Map$Entry of java.util.Map
private ImageSoftReference = sun.awt.image.ImageCache$ImageSoftReference of sun.awt.image.ImageCache
public abstract PixelsKey = sun.awt.image.ImageCache$PixelsKey of sun.awt.image.ImageCache