class sun.nio.fs.LinuxWatchService extends sun.nio.fs.AbstractWatchService
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.nio.fs.LinuxWatchService
super_class: sun.nio.fs.AbstractWatchService
{
private static final sun.misc.Unsafe unsafe;
descriptor: Lsun/misc/Unsafe;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final sun.nio.fs.LinuxWatchService$Poller poller;
descriptor: Lsun/nio/fs/LinuxWatchService$Poller;
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.misc.Unsafe.getUnsafe:()Lsun/misc/Unsafe;
putstatic sun.nio.fs.LinuxWatchService.unsafe:Lsun/misc/Unsafe;
1: new sun.nio.fs.LinuxWatchService$1
dup
invokespecial sun.nio.fs.LinuxWatchService$1.<init>:()V
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
pop
2: return
LocalVariableTable:
Start End Slot Name Signature
void <init>(sun.nio.fs.UnixFileSystem);
descriptor: (Lsun/nio/fs/UnixFileSystem;)V
flags: (0x0000)
Code:
stack=7, locals=5, args_size=2
start local 0 start local 1 0: aload 0
invokespecial sun.nio.fs.AbstractWatchService.<init>:()V
1: iconst_m1
istore 2
start local 2 2: invokestatic sun.nio.fs.LinuxWatchService.inotifyInit:()I
istore 2
3: goto 6
StackMap locals: sun.nio.fs.LinuxWatchService sun.nio.fs.UnixFileSystem int
StackMap stack: sun.nio.fs.UnixException
4: astore 3
start local 3 5: new java.io.IOException
dup
aload 3
invokevirtual sun.nio.fs.UnixException.errorString:()Ljava/lang/String;
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
end local 3 6: StackMap locals:
StackMap stack:
iconst_2
newarray 10
astore 3
start local 3 7: iload 2
iconst_0
invokestatic sun.nio.fs.LinuxWatchService.configureBlocking:(IZ)V
8: aload 3
invokestatic sun.nio.fs.LinuxWatchService.socketpair:([I)V
9: aload 3
iconst_0
iaload
iconst_0
invokestatic sun.nio.fs.LinuxWatchService.configureBlocking:(IZ)V
10: goto 14
StackMap locals: sun.nio.fs.LinuxWatchService sun.nio.fs.UnixFileSystem int int[]
StackMap stack: sun.nio.fs.UnixException
11: astore 4
start local 4 12: iload 2
invokestatic sun.nio.fs.UnixNativeDispatcher.close:(I)V
13: new java.io.IOException
dup
aload 4
invokevirtual sun.nio.fs.UnixException.errorString:()Ljava/lang/String;
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
end local 4 14: StackMap locals:
StackMap stack:
aload 0
new sun.nio.fs.LinuxWatchService$Poller
dup
aload 1
aload 0
iload 2
aload 3
invokespecial sun.nio.fs.LinuxWatchService$Poller.<init>:(Lsun/nio/fs/UnixFileSystem;Lsun/nio/fs/LinuxWatchService;I[I)V
putfield sun.nio.fs.LinuxWatchService.poller:Lsun/nio/fs/LinuxWatchService$Poller;
15: aload 0
getfield sun.nio.fs.LinuxWatchService.poller:Lsun/nio/fs/LinuxWatchService$Poller;
invokevirtual sun.nio.fs.LinuxWatchService$Poller.start:()V
16: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lsun/nio/fs/LinuxWatchService;
0 17 1 fs Lsun/nio/fs/UnixFileSystem;
2 17 2 ifd I
5 6 3 x Lsun/nio/fs/UnixException;
7 17 3 sp [I
12 14 4 x Lsun/nio/fs/UnixException;
Exception table:
from to target type
2 3 4 Class sun.nio.fs.UnixException
7 10 11 Class sun.nio.fs.UnixException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
fs
java.nio.file.WatchKey register(java.nio.file.Path, java.nio.file.WatchEvent$Kind<?>[], java.nio.file.WatchEvent$Modifier[]);
descriptor: (Ljava/nio/file/Path;[Ljava/nio/file/WatchEvent$Kind;[Ljava/nio/file/WatchEvent$Modifier;)Ljava/nio/file/WatchKey;
flags: (0x0080) ACC_VARARGS
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield sun.nio.fs.LinuxWatchService.poller:Lsun/nio/fs/LinuxWatchService$Poller;
aload 1
aload 2
aload 3
invokevirtual sun.nio.fs.LinuxWatchService$Poller.register:(Ljava/nio/file/Path;[Ljava/nio/file/WatchEvent$Kind;[Ljava/nio/file/WatchEvent$Modifier;)Ljava/nio/file/WatchKey;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/fs/LinuxWatchService;
0 1 1 dir Ljava/nio/file/Path;
0 1 2 events [Ljava/nio/file/WatchEvent$Kind;
0 1 3 modifiers [Ljava/nio/file/WatchEvent$Modifier;
Exceptions:
throws java.io.IOException
Signature: (Ljava/nio/file/Path;[Ljava/nio/file/WatchEvent$Kind<*>;[Ljava/nio/file/WatchEvent$Modifier;)Ljava/nio/file/WatchKey;
MethodParameters:
Name Flags
dir
events
modifiers
void implClose();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.fs.LinuxWatchService.poller:Lsun/nio/fs/LinuxWatchService$Poller;
invokevirtual sun.nio.fs.LinuxWatchService$Poller.close:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/fs/LinuxWatchService;
Exceptions:
throws java.io.IOException
private static native int eventSize();
descriptor: ()I
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
private static native int[] eventOffsets();
descriptor: ()[I
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
private static native int inotifyInit();
descriptor: ()I
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
Exceptions:
throws sun.nio.fs.UnixException
private static native int inotifyAddWatch(int, long, int);
descriptor: (IJI)I
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
Exceptions:
throws sun.nio.fs.UnixException
MethodParameters:
Name Flags
fd
pathAddress
mask
private static native void inotifyRmWatch(int, int);
descriptor: (II)V
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
Exceptions:
throws sun.nio.fs.UnixException
MethodParameters:
Name Flags
fd
wd
private static native void configureBlocking(int, boolean);
descriptor: (IZ)V
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
Exceptions:
throws sun.nio.fs.UnixException
MethodParameters:
Name Flags
fd
blocking
private static native void socketpair(int[]);
descriptor: ([I)V
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
Exceptions:
throws sun.nio.fs.UnixException
MethodParameters:
Name Flags
sv
private static native int poll(int, int);
descriptor: (II)I
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
Exceptions:
throws sun.nio.fs.UnixException
MethodParameters:
Name Flags
fd1
fd2
}
SourceFile: "LinuxWatchService.java"
NestMembers:
sun.nio.fs.LinuxWatchService$1 sun.nio.fs.LinuxWatchService$LinuxWatchKey sun.nio.fs.LinuxWatchService$Poller
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
sun.nio.fs.LinuxWatchService$1
private LinuxWatchKey = sun.nio.fs.LinuxWatchService$LinuxWatchKey of sun.nio.fs.LinuxWatchService
private Poller = sun.nio.fs.LinuxWatchService$Poller of sun.nio.fs.LinuxWatchService