class sun.nio.fs.LinuxWatchService$Poller extends sun.nio.fs.AbstractPoller
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.nio.fs.LinuxWatchService$Poller
super_class: sun.nio.fs.AbstractPoller
{
private static final int SIZEOF_INOTIFY_EVENT;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int[] offsets;
descriptor: [I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int OFFSETOF_WD;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int OFFSETOF_MASK;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int OFFSETOF_LEN;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int OFFSETOF_NAME;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int IN_MODIFY;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2
private static final int IN_ATTRIB;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 4
private static final int IN_MOVED_FROM;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 64
private static final int IN_MOVED_TO;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 128
private static final int IN_CREATE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 256
private static final int IN_DELETE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 512
private static final int IN_UNMOUNT;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 8192
private static final int IN_Q_OVERFLOW;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 16384
private static final int IN_IGNORED;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 32768
private static final int BUFFER_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 8192
private final sun.nio.fs.UnixFileSystem fs;
descriptor: Lsun/nio/fs/UnixFileSystem;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final sun.nio.fs.LinuxWatchService watcher;
descriptor: Lsun/nio/fs/LinuxWatchService;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int ifd;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int[] socketpair;
descriptor: [I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.Map<java.lang.Integer, sun.nio.fs.LinuxWatchService$LinuxWatchKey> wdToKey;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/Integer;Lsun/nio/fs/LinuxWatchService$LinuxWatchKey;>;
private final long address;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: invokestatic sun.nio.fs.LinuxWatchService.eventSize:()I
putstatic sun.nio.fs.LinuxWatchService$Poller.SIZEOF_INOTIFY_EVENT:I
1: invokestatic sun.nio.fs.LinuxWatchService.eventOffsets:()[I
putstatic sun.nio.fs.LinuxWatchService$Poller.offsets:[I
2: getstatic sun.nio.fs.LinuxWatchService$Poller.offsets:[I
iconst_0
iaload
putstatic sun.nio.fs.LinuxWatchService$Poller.OFFSETOF_WD:I
3: getstatic sun.nio.fs.LinuxWatchService$Poller.offsets:[I
iconst_1
iaload
putstatic sun.nio.fs.LinuxWatchService$Poller.OFFSETOF_MASK:I
4: getstatic sun.nio.fs.LinuxWatchService$Poller.offsets:[I
iconst_3
iaload
putstatic sun.nio.fs.LinuxWatchService$Poller.OFFSETOF_LEN:I
5: getstatic sun.nio.fs.LinuxWatchService$Poller.offsets:[I
iconst_4
iaload
putstatic sun.nio.fs.LinuxWatchService$Poller.OFFSETOF_NAME:I
6: return
LocalVariableTable:
Start End Slot Name Signature
void <init>(sun.nio.fs.UnixFileSystem, sun.nio.fs.LinuxWatchService, int, int[]);
descriptor: (Lsun/nio/fs/UnixFileSystem;Lsun/nio/fs/LinuxWatchService;I[I)V
flags: (0x0000)
Code:
stack=4, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial sun.nio.fs.AbstractPoller.<init>:()V
1: aload 0
aload 1
putfield sun.nio.fs.LinuxWatchService$Poller.fs:Lsun/nio/fs/UnixFileSystem;
2: aload 0
aload 2
putfield sun.nio.fs.LinuxWatchService$Poller.watcher:Lsun/nio/fs/LinuxWatchService;
3: aload 0
iload 3
putfield sun.nio.fs.LinuxWatchService$Poller.ifd:I
4: aload 0
aload 4
putfield sun.nio.fs.LinuxWatchService$Poller.socketpair:[I
5: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield sun.nio.fs.LinuxWatchService$Poller.wdToKey:Ljava/util/Map;
6: aload 0
getstatic sun.nio.fs.LinuxWatchService.unsafe:Lsun/misc/Unsafe;
ldc 8192
invokevirtual sun.misc.Unsafe.allocateMemory:(J)J
putfield sun.nio.fs.LinuxWatchService$Poller.address:J
7: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/nio/fs/LinuxWatchService$Poller;
0 8 1 fs Lsun/nio/fs/UnixFileSystem;
0 8 2 watcher Lsun/nio/fs/LinuxWatchService;
0 8 3 ifd I
0 8 4 sp [I
MethodParameters:
Name Flags
fs
watcher
ifd
sp
void wakeup();
descriptor: ()V
flags: (0x0000)
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.nio.fs.LinuxWatchService$Poller.socketpair:[I
iconst_1
iaload
aload 0
getfield sun.nio.fs.LinuxWatchService$Poller.address:J
iconst_1
invokestatic sun.nio.fs.UnixNativeDispatcher.write:(IJI)I
pop
1: goto 4
StackMap locals:
StackMap stack: sun.nio.fs.UnixException
2: astore 1
start local 1 3: new java.io.IOException
dup
aload 1
invokevirtual sun.nio.fs.UnixException.errorString:()Ljava/lang/String;
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
end local 1 4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/nio/fs/LinuxWatchService$Poller;
3 4 1 x Lsun/nio/fs/UnixException;
Exception table:
from to target type
0 1 2 Class sun.nio.fs.UnixException
Exceptions:
throws java.io.IOException
implRegister(java.nio.file.Path, java.util.Set<? extends java.nio.file.WatchEvent$Kind<?>>, java.nio.file.WatchEvent$Modifier[]);
descriptor: (Ljava/nio/file/Path;Ljava/util/Set;[Ljava/nio/file/WatchEvent$Modifier;)Ljava/lang/Object;
flags: (0x0080) ACC_VARARGS
Code:
stack=6, locals=10, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
checkcast sun.nio.fs.UnixPath
astore 4
start local 4 1: iconst_0
istore 5
start local 5 2: aload 2
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 7
goto 12
StackMap locals: sun.nio.fs.LinuxWatchService$Poller java.nio.file.Path java.util.Set java.nio.file.WatchEvent$Modifier[] sun.nio.fs.UnixPath int top java.util.Iterator
StackMap stack:
3: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.nio.file.WatchEvent$Kind
astore 6
start local 6 4: aload 6
getstatic java.nio.file.StandardWatchEventKinds.ENTRY_CREATE:Ljava/nio/file/WatchEvent$Kind;
if_acmpne 7
5: iload 5
sipush 384
ior
istore 5
6: goto 12
7: StackMap locals: sun.nio.fs.LinuxWatchService$Poller java.nio.file.Path java.util.Set java.nio.file.WatchEvent$Modifier[] sun.nio.fs.UnixPath int java.nio.file.WatchEvent$Kind java.util.Iterator
StackMap stack:
aload 6
getstatic java.nio.file.StandardWatchEventKinds.ENTRY_DELETE:Ljava/nio/file/WatchEvent$Kind;
if_acmpne 10
8: iload 5
sipush 576
ior
istore 5
9: goto 12
10: StackMap locals:
StackMap stack:
aload 6
getstatic java.nio.file.StandardWatchEventKinds.ENTRY_MODIFY:Ljava/nio/file/WatchEvent$Kind;
if_acmpne 12
11: iload 5
bipush 6
ior
istore 5
end local 6 12: StackMap locals: sun.nio.fs.LinuxWatchService$Poller java.nio.file.Path java.util.Set java.nio.file.WatchEvent$Modifier[] sun.nio.fs.UnixPath int top java.util.Iterator
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
13: aload 3
arraylength
ifle 23
14: aload 3
dup
astore 9
arraylength
istore 8
iconst_0
istore 7
goto 22
StackMap locals: sun.nio.fs.LinuxWatchService$Poller java.nio.file.Path java.util.Set java.nio.file.WatchEvent$Modifier[] sun.nio.fs.UnixPath int top int int java.nio.file.WatchEvent$Modifier[]
StackMap stack:
15: aload 9
iload 7
aaload
astore 6
start local 6 16: aload 6
ifnonnull 18
17: new java.lang.NullPointerException
dup
invokespecial java.lang.NullPointerException.<init>:()V
areturn
18: StackMap locals: sun.nio.fs.LinuxWatchService$Poller java.nio.file.Path java.util.Set java.nio.file.WatchEvent$Modifier[] sun.nio.fs.UnixPath int java.nio.file.WatchEvent$Modifier int int java.nio.file.WatchEvent$Modifier[]
StackMap stack:
aload 6
instanceof com.sun.nio.file.SensitivityWatchEventModifier
ifeq 20
19: goto 21
20: StackMap locals:
StackMap stack:
new java.lang.UnsupportedOperationException
dup
ldc "Modifier not supported"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
areturn
end local 6 21: StackMap locals: sun.nio.fs.LinuxWatchService$Poller java.nio.file.Path java.util.Set java.nio.file.WatchEvent$Modifier[] sun.nio.fs.UnixPath int top int int java.nio.file.WatchEvent$Modifier[]
StackMap stack:
iinc 7 1
StackMap locals:
StackMap stack:
22: iload 7
iload 8
if_icmplt 15
23: StackMap locals: sun.nio.fs.LinuxWatchService$Poller java.nio.file.Path java.util.Set java.nio.file.WatchEvent$Modifier[] sun.nio.fs.UnixPath int
StackMap stack:
aconst_null
astore 6
start local 6 24: aload 4
iconst_1
invokestatic sun.nio.fs.UnixFileAttributes.get:(Lsun/nio/fs/UnixPath;Z)Lsun/nio/fs/UnixFileAttributes;
astore 6
25: goto 28
StackMap locals: sun.nio.fs.LinuxWatchService$Poller java.nio.file.Path java.util.Set java.nio.file.WatchEvent$Modifier[] sun.nio.fs.UnixPath int sun.nio.fs.UnixFileAttributes
StackMap stack: sun.nio.fs.UnixException
26: astore 7
start local 7 27: aload 7
aload 4
invokevirtual sun.nio.fs.UnixException.asIOException:(Lsun/nio/fs/UnixPath;)Ljava/io/IOException;
areturn
end local 7 28: StackMap locals:
StackMap stack:
aload 6
invokevirtual sun.nio.fs.UnixFileAttributes.isDirectory:()Z
ifne 30
29: new java.nio.file.NotDirectoryException
dup
aload 4
invokevirtual sun.nio.fs.UnixPath.getPathForExceptionMessage:()Ljava/lang/String;
invokespecial java.nio.file.NotDirectoryException.<init>:(Ljava/lang/String;)V
areturn
30: StackMap locals:
StackMap stack:
iconst_m1
istore 7
start local 7 31: aload 4
invokevirtual sun.nio.fs.UnixPath.getByteArrayForSysCalls:()[B
invokestatic sun.nio.fs.NativeBuffers.asNativeBuffer:([B)Lsun/nio/fs/NativeBuffer;
32: astore 8
start local 8 33: aload 0
getfield sun.nio.fs.LinuxWatchService$Poller.ifd:I
aload 8
invokevirtual sun.nio.fs.NativeBuffer.address:()J
iload 5
invokestatic sun.nio.fs.LinuxWatchService.inotifyAddWatch:(IJI)I
istore 7
34: goto 38
StackMap locals: sun.nio.fs.LinuxWatchService$Poller java.nio.file.Path java.util.Set java.nio.file.WatchEvent$Modifier[] sun.nio.fs.UnixPath int sun.nio.fs.UnixFileAttributes int sun.nio.fs.NativeBuffer
StackMap stack: java.lang.Throwable
35: astore 9
36: aload 8
invokevirtual sun.nio.fs.NativeBuffer.release:()V
37: aload 9
athrow
38: StackMap locals:
StackMap stack:
aload 8
invokevirtual sun.nio.fs.NativeBuffer.release:()V
end local 8 39: goto 44
StackMap locals: sun.nio.fs.LinuxWatchService$Poller java.nio.file.Path java.util.Set java.nio.file.WatchEvent$Modifier[] sun.nio.fs.UnixPath int sun.nio.fs.UnixFileAttributes int
StackMap stack: sun.nio.fs.UnixException
40: astore 8
start local 8 41: aload 8
invokevirtual sun.nio.fs.UnixException.errno:()I
bipush 28
if_icmpne 43
42: new java.io.IOException
dup
ldc "User limit of inotify watches reached"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
areturn
43: StackMap locals: sun.nio.fs.UnixException
StackMap stack:
aload 8
aload 4
invokevirtual sun.nio.fs.UnixException.asIOException:(Lsun/nio/fs/UnixPath;)Ljava/io/IOException;
areturn
end local 8 44: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.fs.LinuxWatchService$Poller.wdToKey:Ljava/util/Map;
iload 7
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast sun.nio.fs.LinuxWatchService$LinuxWatchKey
astore 8
start local 8 45: aload 8
ifnonnull 48
46: new sun.nio.fs.LinuxWatchService$LinuxWatchKey
dup
aload 4
aload 0
getfield sun.nio.fs.LinuxWatchService$Poller.watcher:Lsun/nio/fs/LinuxWatchService;
aload 0
getfield sun.nio.fs.LinuxWatchService$Poller.ifd:I
iload 7
invokespecial sun.nio.fs.LinuxWatchService$LinuxWatchKey.<init>:(Lsun/nio/fs/UnixPath;Lsun/nio/fs/LinuxWatchService;II)V
astore 8
47: aload 0
getfield sun.nio.fs.LinuxWatchService$Poller.wdToKey:Ljava/util/Map;
iload 7
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aload 8
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
48: StackMap locals: sun.nio.fs.LinuxWatchService$LinuxWatchKey
StackMap stack:
aload 8
areturn
end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 49 0 this Lsun/nio/fs/LinuxWatchService$Poller;
0 49 1 obj Ljava/nio/file/Path;
0 49 2 events Ljava/util/Set<+Ljava/nio/file/WatchEvent$Kind<*>;>;
0 49 3 modifiers [Ljava/nio/file/WatchEvent$Modifier;
1 49 4 dir Lsun/nio/fs/UnixPath;
2 49 5 mask I
4 12 6 event Ljava/nio/file/WatchEvent$Kind<*>;
16 21 6 modifier Ljava/nio/file/WatchEvent$Modifier;
24 49 6 attrs Lsun/nio/fs/UnixFileAttributes;
27 28 7 x Lsun/nio/fs/UnixException;
31 49 7 wd I
33 39 8 buffer Lsun/nio/fs/NativeBuffer;
41 44 8 x Lsun/nio/fs/UnixException;
45 49 8 key Lsun/nio/fs/LinuxWatchService$LinuxWatchKey;
Exception table:
from to target type
24 25 26 Class sun.nio.fs.UnixException
33 35 35 any
31 39 40 Class sun.nio.fs.UnixException
Signature: (Ljava/nio/file/Path;Ljava/util/Set<+Ljava/nio/file/WatchEvent$Kind<*>;>;[Ljava/nio/file/WatchEvent$Modifier;)Ljava/lang/Object;
MethodParameters:
Name Flags
obj
events
modifiers
void implCancelKey(java.nio.file.WatchKey);
descriptor: (Ljava/nio/file/WatchKey;)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
checkcast sun.nio.fs.LinuxWatchService$LinuxWatchKey
astore 2
start local 2 1: aload 2
invokevirtual sun.nio.fs.LinuxWatchService$LinuxWatchKey.isValid:()Z
ifeq 4
2: aload 0
getfield sun.nio.fs.LinuxWatchService$Poller.wdToKey:Ljava/util/Map;
aload 2
invokevirtual sun.nio.fs.LinuxWatchService$LinuxWatchKey.descriptor:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
3: aload 2
iconst_1
invokevirtual sun.nio.fs.LinuxWatchService$LinuxWatchKey.invalidate:(Z)V
4: StackMap locals: sun.nio.fs.LinuxWatchService$LinuxWatchKey
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/nio/fs/LinuxWatchService$Poller;
0 5 1 obj Ljava/nio/file/WatchKey;
1 5 2 key Lsun/nio/fs/LinuxWatchService$LinuxWatchKey;
MethodParameters:
Name Flags
obj
void implCloseAll();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
getfield sun.nio.fs.LinuxWatchService$Poller.wdToKey:Ljava/util/Map;
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 2
goto 3
StackMap locals: sun.nio.fs.LinuxWatchService$Poller top java.util.Iterator
StackMap stack:
1: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 1
start local 1 2: aload 1
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast sun.nio.fs.LinuxWatchService$LinuxWatchKey
iconst_1
invokevirtual sun.nio.fs.LinuxWatchService$LinuxWatchKey.invalidate:(Z)V
end local 1 3: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
4: aload 0
getfield sun.nio.fs.LinuxWatchService$Poller.wdToKey:Ljava/util/Map;
invokeinterface java.util.Map.clear:()V
5: getstatic sun.nio.fs.LinuxWatchService.unsafe:Lsun/misc/Unsafe;
aload 0
getfield sun.nio.fs.LinuxWatchService$Poller.address:J
invokevirtual sun.misc.Unsafe.freeMemory:(J)V
6: aload 0
getfield sun.nio.fs.LinuxWatchService$Poller.socketpair:[I
iconst_0
iaload
invokestatic sun.nio.fs.UnixNativeDispatcher.close:(I)V
7: aload 0
getfield sun.nio.fs.LinuxWatchService$Poller.socketpair:[I
iconst_1
iaload
invokestatic sun.nio.fs.UnixNativeDispatcher.close:(I)V
8: aload 0
getfield sun.nio.fs.LinuxWatchService$Poller.ifd:I
invokestatic sun.nio.fs.UnixNativeDispatcher.close:(I)V
9: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/nio/fs/LinuxWatchService$Poller;
2 3 1 entry Ljava/util/Map$Entry<Ljava/lang/Integer;Lsun/nio/fs/LinuxWatchService$LinuxWatchKey;>;
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=9, locals=13, args_size=1
start local 0 0: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.fs.LinuxWatchService$Poller.ifd:I
aload 0
getfield sun.nio.fs.LinuxWatchService$Poller.socketpair:[I
iconst_0
iaload
invokestatic sun.nio.fs.LinuxWatchService.poll:(II)I
istore 1
start local 1 1: aload 0
getfield sun.nio.fs.LinuxWatchService$Poller.ifd:I
aload 0
getfield sun.nio.fs.LinuxWatchService$Poller.address:J
sipush 8192
invokestatic sun.nio.fs.UnixNativeDispatcher.read:(IJI)I
istore 2
start local 2 2: goto 7
end local 2 StackMap locals: sun.nio.fs.LinuxWatchService$Poller int
StackMap stack: sun.nio.fs.UnixException
3: astore 3
start local 3 4: aload 3
invokevirtual sun.nio.fs.UnixException.errno:()I
bipush 11
if_icmpeq 6
5: aload 3
athrow
6: StackMap locals: sun.nio.fs.LinuxWatchService$Poller int top sun.nio.fs.UnixException
StackMap stack:
iconst_0
istore 2
end local 3 start local 2 7: StackMap locals: sun.nio.fs.LinuxWatchService$Poller int int
StackMap stack:
iload 1
iconst_1
if_icmpgt 8
iload 1
iconst_1
if_icmpne 15
iload 2
ifne 15
8: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.fs.LinuxWatchService$Poller.socketpair:[I
iconst_0
iaload
aload 0
getfield sun.nio.fs.LinuxWatchService$Poller.address:J
sipush 8192
invokestatic sun.nio.fs.UnixNativeDispatcher.read:(IJI)I
pop
9: aload 0
invokevirtual sun.nio.fs.LinuxWatchService$Poller.processRequests:()Z
istore 3
start local 3 10: iload 3
ifeq 15
11: goto 42
end local 3 12: StackMap locals:
StackMap stack: sun.nio.fs.UnixException
astore 3
start local 3 13: aload 3
invokevirtual sun.nio.fs.UnixException.errno:()I
bipush 11
if_icmpeq 15
14: aload 3
athrow
end local 3 15: StackMap locals:
StackMap stack:
iconst_0
istore 3
start local 3 16: goto 38
17: StackMap locals: int
StackMap stack:
aload 0
getfield sun.nio.fs.LinuxWatchService$Poller.address:J
iload 3
i2l
ladd
lstore 4
start local 4 18: getstatic sun.nio.fs.LinuxWatchService.unsafe:Lsun/misc/Unsafe;
lload 4
getstatic sun.nio.fs.LinuxWatchService$Poller.OFFSETOF_WD:I
i2l
ladd
invokevirtual sun.misc.Unsafe.getInt:(J)I
istore 6
start local 6 19: getstatic sun.nio.fs.LinuxWatchService.unsafe:Lsun/misc/Unsafe;
lload 4
getstatic sun.nio.fs.LinuxWatchService$Poller.OFFSETOF_MASK:I
i2l
ladd
invokevirtual sun.misc.Unsafe.getInt:(J)I
istore 7
start local 7 20: getstatic sun.nio.fs.LinuxWatchService.unsafe:Lsun/misc/Unsafe;
lload 4
getstatic sun.nio.fs.LinuxWatchService$Poller.OFFSETOF_LEN:I
i2l
ladd
invokevirtual sun.misc.Unsafe.getInt:(J)I
istore 8
start local 8 21: aconst_null
astore 9
start local 9 22: iload 8
ifle 36
23: iload 8
istore 10
start local 10 24: goto 29
25: StackMap locals: sun.nio.fs.LinuxWatchService$Poller int int int long int int int sun.nio.fs.UnixPath int
StackMap stack:
lload 4
getstatic sun.nio.fs.LinuxWatchService$Poller.OFFSETOF_NAME:I
i2l
ladd
iload 10
i2l
ladd
lconst_1
lsub
lstore 11
start local 11 26: getstatic sun.nio.fs.LinuxWatchService.unsafe:Lsun/misc/Unsafe;
lload 11
invokevirtual sun.misc.Unsafe.getByte:(J)B
ifeq 28
27: goto 30
28: StackMap locals: long
StackMap stack:
iinc 10 -1
end local 11 29: StackMap locals:
StackMap stack:
iload 10
ifgt 25
30: StackMap locals:
StackMap stack:
iload 10
ifle 36
31: iload 10
newarray 8
astore 11
start local 11 32: getstatic sun.nio.fs.LinuxWatchService.unsafe:Lsun/misc/Unsafe;
aconst_null
lload 4
getstatic sun.nio.fs.LinuxWatchService$Poller.OFFSETOF_NAME:I
i2l
ladd
33: aload 11
getstatic sun.misc.Unsafe.ARRAY_BYTE_BASE_OFFSET:I
i2l
iload 10
i2l
34: invokevirtual sun.misc.Unsafe.copyMemory:(Ljava/lang/Object;JLjava/lang/Object;JJ)V
35: new sun.nio.fs.UnixPath
dup
aload 0
getfield sun.nio.fs.LinuxWatchService$Poller.fs:Lsun/nio/fs/UnixFileSystem;
aload 11
invokespecial sun.nio.fs.UnixPath.<init>:(Lsun/nio/fs/UnixFileSystem;[B)V
astore 9
end local 11 end local 10 36: StackMap locals:
StackMap stack:
aload 0
iload 6
iload 7
aload 9
invokevirtual sun.nio.fs.LinuxWatchService$Poller.processEvent:(IILsun/nio/fs/UnixPath;)V
37: iload 3
getstatic sun.nio.fs.LinuxWatchService$Poller.SIZEOF_INOTIFY_EVENT:I
iload 8
iadd
iadd
istore 3
end local 9 end local 8 end local 7 end local 6 end local 4 38: StackMap locals: sun.nio.fs.LinuxWatchService$Poller int int int
StackMap stack:
iload 3
iload 2
if_icmplt 17
end local 3 end local 2 end local 1 39: goto 0
40: StackMap locals: sun.nio.fs.LinuxWatchService$Poller
StackMap stack: sun.nio.fs.UnixException
astore 1
start local 1 41: aload 1
invokevirtual sun.nio.fs.UnixException.printStackTrace:()V
end local 1 42: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 43 0 this Lsun/nio/fs/LinuxWatchService$Poller;
1 39 1 nReady I
2 3 2 bytesRead I
7 39 2 bytesRead I
4 7 3 x Lsun/nio/fs/UnixException;
10 12 3 shutdown Z
13 15 3 x Lsun/nio/fs/UnixException;
16 39 3 offset I
18 38 4 event J
19 38 6 wd I
20 38 7 mask I
21 38 8 len I
22 38 9 name Lsun/nio/fs/UnixPath;
24 36 10 actual I
26 29 11 last J
32 36 11 buf [B
41 42 1 x Lsun/nio/fs/UnixException;
Exception table:
from to target type
1 2 3 Class sun.nio.fs.UnixException
8 11 12 Class sun.nio.fs.UnixException
0 40 40 Class sun.nio.fs.UnixException
private java.nio.file.WatchEvent$Kind<?> maskToEventKind(int);
descriptor: (I)Ljava/nio/file/WatchEvent$Kind;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: iload 1
iconst_2
iand
ifle 2
1: getstatic java.nio.file.StandardWatchEventKinds.ENTRY_MODIFY:Ljava/nio/file/WatchEvent$Kind;
areturn
2: StackMap locals:
StackMap stack:
iload 1
iconst_4
iand
ifle 4
3: getstatic java.nio.file.StandardWatchEventKinds.ENTRY_MODIFY:Ljava/nio/file/WatchEvent$Kind;
areturn
4: StackMap locals:
StackMap stack:
iload 1
sipush 256
iand
ifle 6
5: getstatic java.nio.file.StandardWatchEventKinds.ENTRY_CREATE:Ljava/nio/file/WatchEvent$Kind;
areturn
6: StackMap locals:
StackMap stack:
iload 1
sipush 128
iand
ifle 8
7: getstatic java.nio.file.StandardWatchEventKinds.ENTRY_CREATE:Ljava/nio/file/WatchEvent$Kind;
areturn
8: StackMap locals:
StackMap stack:
iload 1
sipush 512
iand
ifle 10
9: getstatic java.nio.file.StandardWatchEventKinds.ENTRY_DELETE:Ljava/nio/file/WatchEvent$Kind;
areturn
10: StackMap locals:
StackMap stack:
iload 1
bipush 64
iand
ifle 12
11: getstatic java.nio.file.StandardWatchEventKinds.ENTRY_DELETE:Ljava/nio/file/WatchEvent$Kind;
areturn
12: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lsun/nio/fs/LinuxWatchService$Poller;
0 13 1 mask I
Signature: (I)Ljava/nio/file/WatchEvent$Kind<*>;
MethodParameters:
Name Flags
mask
private void processEvent(int, int, sun.nio.fs.UnixPath);
descriptor: (IILsun/nio/fs/UnixPath;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 2
sipush 16384
iand
ifle 7
1: aload 0
getfield sun.nio.fs.LinuxWatchService$Poller.wdToKey:Ljava/util/Map;
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 5
goto 5
StackMap locals: sun.nio.fs.LinuxWatchService$Poller int int sun.nio.fs.UnixPath top java.util.Iterator
StackMap stack:
2: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 4
start local 4 3: aload 4
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast sun.nio.fs.LinuxWatchService$LinuxWatchKey
4: getstatic java.nio.file.StandardWatchEventKinds.OVERFLOW:Ljava/nio/file/WatchEvent$Kind;
aconst_null
invokevirtual sun.nio.fs.LinuxWatchService$LinuxWatchKey.signalEvent:(Ljava/nio/file/WatchEvent$Kind;Ljava/lang/Object;)V
end local 4 5: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
6: return
7: StackMap locals: sun.nio.fs.LinuxWatchService$Poller int int sun.nio.fs.UnixPath
StackMap stack:
aload 0
getfield sun.nio.fs.LinuxWatchService$Poller.wdToKey:Ljava/util/Map;
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast sun.nio.fs.LinuxWatchService$LinuxWatchKey
astore 4
start local 4 8: aload 4
ifnonnull 10
9: return
10: StackMap locals: sun.nio.fs.LinuxWatchService$LinuxWatchKey
StackMap stack:
iload 2
ldc 32768
iand
ifle 15
11: aload 0
getfield sun.nio.fs.LinuxWatchService$Poller.wdToKey:Ljava/util/Map;
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
12: aload 4
iconst_0
invokevirtual sun.nio.fs.LinuxWatchService$LinuxWatchKey.invalidate:(Z)V
13: aload 4
invokevirtual sun.nio.fs.LinuxWatchService$LinuxWatchKey.signal:()V
14: return
15: StackMap locals:
StackMap stack:
aload 3
ifnonnull 17
16: return
17: StackMap locals:
StackMap stack:
aload 0
iload 2
invokevirtual sun.nio.fs.LinuxWatchService$Poller.maskToEventKind:(I)Ljava/nio/file/WatchEvent$Kind;
astore 5
start local 5 18: aload 5
ifnull 20
19: aload 4
aload 5
aload 3
invokevirtual sun.nio.fs.LinuxWatchService$LinuxWatchKey.signalEvent:(Ljava/nio/file/WatchEvent$Kind;Ljava/lang/Object;)V
20: StackMap locals: java.nio.file.WatchEvent$Kind
StackMap stack:
return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lsun/nio/fs/LinuxWatchService$Poller;
0 21 1 wd I
0 21 2 mask I
0 21 3 name Lsun/nio/fs/UnixPath;
3 5 4 entry Ljava/util/Map$Entry<Ljava/lang/Integer;Lsun/nio/fs/LinuxWatchService$LinuxWatchKey;>;
8 21 4 key Lsun/nio/fs/LinuxWatchService$LinuxWatchKey;
18 21 5 kind Ljava/nio/file/WatchEvent$Kind<*>;
MethodParameters:
Name Flags
wd
mask
name final
}
SourceFile: "LinuxWatchService.java"
NestHost: sun.nio.fs.LinuxWatchService
InnerClasses:
public abstract Kind = java.nio.file.WatchEvent$Kind of java.nio.file.WatchEvent
public abstract Modifier = java.nio.file.WatchEvent$Modifier of java.nio.file.WatchEvent
public abstract Entry = java.util.Map$Entry of java.util.Map
private LinuxWatchKey = sun.nio.fs.LinuxWatchService$LinuxWatchKey of sun.nio.fs.LinuxWatchService
private Poller = sun.nio.fs.LinuxWatchService$Poller of sun.nio.fs.LinuxWatchService