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 jdk.internal.misc.Unsafe unsafe;
descriptor: Ljdk/internal/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=1, locals=0, args_size=0
0: invokestatic jdk.internal.misc.Unsafe.getUnsafe:()Ljdk/internal/misc/Unsafe;
putstatic sun.nio.fs.LinuxWatchService.unsafe:Ljdk/internal/misc/Unsafe;
1: ldc "nio"
invokestatic jdk.internal.loader.BootLoader.loadLibrary:(Ljava/lang/String;)V
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 10
StackMap locals: sun.nio.fs.LinuxWatchService sun.nio.fs.UnixFileSystem int
StackMap stack: sun.nio.fs.UnixException
4: astore 3
start local 3 5: aload 3
invokevirtual sun.nio.fs.UnixException.errno:()I
bipush 24
if_icmpne 7
6: ldc "User limit of inotify instances reached or too many open files"
goto 8
7: StackMap locals: sun.nio.fs.UnixException
StackMap stack:
aload 3
invokevirtual sun.nio.fs.UnixException.errorString:()Ljava/lang/String;
8: StackMap locals:
StackMap stack: java.lang.String
astore 4
start local 4 9: new java.io.IOException
dup
aload 4
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
end local 4 end local 3 10: StackMap locals:
StackMap stack:
iconst_2
newarray 10
astore 3
start local 3 11: iload 2
iconst_0
invokestatic sun.nio.fs.LinuxWatchService.configureBlocking:(IZ)V
12: aload 3
invokestatic sun.nio.fs.LinuxWatchService.socketpair:([I)V
13: aload 3
iconst_0
iaload
iconst_0
invokestatic sun.nio.fs.LinuxWatchService.configureBlocking:(IZ)V
14: goto 18
StackMap locals: sun.nio.fs.LinuxWatchService sun.nio.fs.UnixFileSystem int int[]
StackMap stack: sun.nio.fs.UnixException
15: astore 4
start local 4 16: iload 2
invokestatic sun.nio.fs.UnixNativeDispatcher.close:(I)V
17: 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 18: 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;
19: aload 0
getfield sun.nio.fs.LinuxWatchService.poller:Lsun/nio/fs/LinuxWatchService$Poller;
invokevirtual sun.nio.fs.LinuxWatchService$Poller.start:()V
20: return
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;
0 21 1 fs Lsun/nio/fs/UnixFileSystem;
2 21 2 ifd I
5 10 3 x Lsun/nio/fs/UnixException;
9 10 4 msg Ljava/lang/String;
11 21 3 sp [I
16 18 4 x Lsun/nio/fs/UnixException;
Exception table:
from to target type
2 3 4 Class sun.nio.fs.UnixException
11 14 15 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$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
private LinuxWatchKey = sun.nio.fs.LinuxWatchService$LinuxWatchKey of sun.nio.fs.LinuxWatchService
private Poller = sun.nio.fs.LinuxWatchService$Poller of sun.nio.fs.LinuxWatchService