class sun.nio.ch.FileChannelImpl$SimpleFileLockTable extends sun.nio.ch.FileLockTable
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.nio.ch.FileChannelImpl$SimpleFileLockTable
super_class: sun.nio.ch.FileLockTable
{
private final java.util.List<java.nio.channels.FileLock> lockList;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Ljava/nio/channels/FileLock;>;
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lsun/nio/ch/FileChannelImpl;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic sun.nio.ch.FileChannelImpl$SimpleFileLockTable.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokespecial sun.nio.ch.FileLockTable.<init>:()V
1: aload 0
new java.util.ArrayList
dup
iconst_2
invokespecial java.util.ArrayList.<init>:(I)V
putfield sun.nio.ch.FileChannelImpl$SimpleFileLockTable.lockList:Ljava/util/List;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/nio/ch/FileChannelImpl$SimpleFileLockTable;
private void checkList(long, long);
descriptor: (JJ)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=7, args_size=3
start local 0 start local 1 start local 3 0: getstatic sun.nio.ch.FileChannelImpl$SimpleFileLockTable.$assertionsDisabled:Z
ifne 1
aload 0
getfield sun.nio.ch.FileChannelImpl$SimpleFileLockTable.lockList:Ljava/util/List;
invokestatic java.lang.Thread.holdsLock:(Ljava/lang/Object;)Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.FileChannelImpl$SimpleFileLockTable.lockList:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 5
StackMap locals: sun.nio.ch.FileChannelImpl$SimpleFileLockTable long long top java.util.Iterator
StackMap stack:
2: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.nio.channels.FileLock
astore 5
start local 5 3: aload 5
lload 1
lload 3
invokevirtual java.nio.channels.FileLock.overlaps:(JJ)Z
ifeq 5
4: new java.nio.channels.OverlappingFileLockException
dup
invokespecial java.nio.channels.OverlappingFileLockException.<init>:()V
athrow
end local 5 5: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
6: return
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/nio/ch/FileChannelImpl$SimpleFileLockTable;
0 7 1 position J
0 7 3 size J
3 5 5 fl Ljava/nio/channels/FileLock;
Exceptions:
throws java.nio.channels.OverlappingFileLockException
MethodParameters:
Name Flags
position
size
public void add(java.nio.channels.FileLock);
descriptor: (Ljava/nio/channels/FileLock;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.nio.ch.FileChannelImpl$SimpleFileLockTable.lockList:Ljava/util/List;
dup
astore 2
monitorenter
1: aload 0
aload 1
invokevirtual java.nio.channels.FileLock.position:()J
aload 1
invokevirtual java.nio.channels.FileLock.size:()J
invokevirtual sun.nio.ch.FileChannelImpl$SimpleFileLockTable.checkList:(JJ)V
2: aload 0
getfield sun.nio.ch.FileChannelImpl$SimpleFileLockTable.lockList:Ljava/util/List;
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
3: aload 2
monitorexit
4: goto 7
StackMap locals: sun.nio.ch.FileChannelImpl$SimpleFileLockTable java.nio.channels.FileLock java.util.List
StackMap stack: java.lang.Throwable
5: aload 2
monitorexit
6: athrow
7: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/nio/ch/FileChannelImpl$SimpleFileLockTable;
0 8 1 fl Ljava/nio/channels/FileLock;
Exception table:
from to target type
1 4 5 any
5 6 5 any
Exceptions:
throws java.nio.channels.OverlappingFileLockException
MethodParameters:
Name Flags
fl
public void remove(java.nio.channels.FileLock);
descriptor: (Ljava/nio/channels/FileLock;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.nio.ch.FileChannelImpl$SimpleFileLockTable.lockList:Ljava/util/List;
dup
astore 2
monitorenter
1: aload 0
getfield sun.nio.ch.FileChannelImpl$SimpleFileLockTable.lockList:Ljava/util/List;
aload 1
invokeinterface java.util.List.remove:(Ljava/lang/Object;)Z
pop
2: aload 2
monitorexit
3: goto 6
StackMap locals: sun.nio.ch.FileChannelImpl$SimpleFileLockTable java.nio.channels.FileLock java.util.List
StackMap stack: java.lang.Throwable
4: aload 2
monitorexit
5: athrow
6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/nio/ch/FileChannelImpl$SimpleFileLockTable;
0 7 1 fl Ljava/nio/channels/FileLock;
Exception table:
from to target type
1 3 4 any
4 5 4 any
MethodParameters:
Name Flags
fl
public java.util.List<java.nio.channels.FileLock> removeAll();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.FileChannelImpl$SimpleFileLockTable.lockList:Ljava/util/List;
dup
astore 1
monitorenter
1: new java.util.ArrayList
dup
aload 0
getfield sun.nio.ch.FileChannelImpl$SimpleFileLockTable.lockList:Ljava/util/List;
invokespecial java.util.ArrayList.<init>:(Ljava/util/Collection;)V
astore 2
start local 2 2: aload 0
getfield sun.nio.ch.FileChannelImpl$SimpleFileLockTable.lockList:Ljava/util/List;
invokeinterface java.util.List.clear:()V
3: aload 2
aload 1
monitorexit
4: areturn
end local 2 5: StackMap locals: sun.nio.ch.FileChannelImpl$SimpleFileLockTable java.util.List
StackMap stack: java.lang.Throwable
aload 1
monitorexit
6: athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/nio/ch/FileChannelImpl$SimpleFileLockTable;
2 5 2 result Ljava/util/List<Ljava/nio/channels/FileLock;>;
Exception table:
from to target type
1 4 5 any
5 6 5 any
Signature: ()Ljava/util/List<Ljava/nio/channels/FileLock;>;
public void replace(java.nio.channels.FileLock, java.nio.channels.FileLock);
descriptor: (Ljava/nio/channels/FileLock;Ljava/nio/channels/FileLock;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield sun.nio.ch.FileChannelImpl$SimpleFileLockTable.lockList:Ljava/util/List;
dup
astore 3
monitorenter
1: aload 0
getfield sun.nio.ch.FileChannelImpl$SimpleFileLockTable.lockList:Ljava/util/List;
aload 1
invokeinterface java.util.List.remove:(Ljava/lang/Object;)Z
pop
2: aload 0
getfield sun.nio.ch.FileChannelImpl$SimpleFileLockTable.lockList:Ljava/util/List;
aload 2
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
3: aload 3
monitorexit
4: goto 7
StackMap locals: sun.nio.ch.FileChannelImpl$SimpleFileLockTable java.nio.channels.FileLock java.nio.channels.FileLock java.util.List
StackMap stack: java.lang.Throwable
5: aload 3
monitorexit
6: athrow
7: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/nio/ch/FileChannelImpl$SimpleFileLockTable;
0 8 1 fl1 Ljava/nio/channels/FileLock;
0 8 2 fl2 Ljava/nio/channels/FileLock;
Exception table:
from to target type
1 4 5 any
5 6 5 any
MethodParameters:
Name Flags
fl1
fl2
}
SourceFile: "FileChannelImpl.java"
NestHost: sun.nio.ch.FileChannelImpl
InnerClasses:
private SimpleFileLockTable = sun.nio.ch.FileChannelImpl$SimpleFileLockTable of sun.nio.ch.FileChannelImpl