public class org.apache.cassandra.utils.NativeLibraryDarwin implements org.apache.cassandra.utils.NativeLibraryWrapper
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.utils.NativeLibraryDarwin
super_class: java.lang.Object
{
private static final org.slf4j.Logger logger;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static boolean available;
descriptor: Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=1, args_size=0
0: ldc Lorg/apache/cassandra/utils/NativeLibraryDarwin;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.utils.NativeLibraryDarwin.logger:Lorg/slf4j/Logger;
1: ldc "c"
invokestatic java.util.Collections.emptyMap:()Ljava/util/Map;
invokestatic com.sun.jna.NativeLibrary.getInstance:(Ljava/lang/String;Ljava/util/Map;)Lcom/sun/jna/NativeLibrary;
invokestatic com.sun.jna.Native.register:(Lcom/sun/jna/NativeLibrary;)V
2: iconst_1
putstatic org.apache.cassandra.utils.NativeLibraryDarwin.available:Z
3: goto 11
4: StackMap locals:
StackMap stack: java.lang.NoClassDefFoundError
pop
5: getstatic org.apache.cassandra.utils.NativeLibraryDarwin.logger:Lorg/slf4j/Logger;
ldc "JNA not found. Native methods will be disabled."
invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;)V
goto 11
6: StackMap locals:
StackMap stack: java.lang.UnsatisfiedLinkError
astore 0
start local 0 7: getstatic org.apache.cassandra.utils.NativeLibraryDarwin.logger:Lorg/slf4j/Logger;
ldc "Failed to link the C library against JNA. Native methods will be unavailable."
aload 0
invokeinterface org.slf4j.Logger.error:(Ljava/lang/String;Ljava/lang/Throwable;)V
end local 0 8: goto 11
9: StackMap locals:
StackMap stack: java.lang.NoSuchMethodError
pop
10: getstatic org.apache.cassandra.utils.NativeLibraryDarwin.logger:Lorg/slf4j/Logger;
ldc "Obsolete version of JNA present; unable to register C library. Upgrade to JNA 3.2.7 or later"
invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;)V
11: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
7 8 0 e Ljava/lang/UnsatisfiedLinkError;
Exception table:
from to target type
1 3 4 Class java.lang.NoClassDefFoundError
1 3 6 Class java.lang.UnsatisfiedLinkError
1 3 9 Class java.lang.NoSuchMethodError
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/utils/NativeLibraryDarwin;
private static native int mlockall(int);
descriptor: (I)I
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
Exceptions:
throws com.sun.jna.LastErrorException
MethodParameters:
Name Flags
flags
private static native int munlockall();
descriptor: ()I
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
Exceptions:
throws com.sun.jna.LastErrorException
private static native int fcntl(int, int, long);
descriptor: (IIJ)I
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
Exceptions:
throws com.sun.jna.LastErrorException
MethodParameters:
Name Flags
fd
command
flags
private static native int open(java.lang.String, int);
descriptor: (Ljava/lang/String;I)I
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
Exceptions:
throws com.sun.jna.LastErrorException
MethodParameters:
Name Flags
path
flags
private static native int fsync(int);
descriptor: (I)I
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
Exceptions:
throws com.sun.jna.LastErrorException
MethodParameters:
Name Flags
fd
private static native int close(int);
descriptor: (I)I
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
Exceptions:
throws com.sun.jna.LastErrorException
MethodParameters:
Name Flags
fd
private static native com.sun.jna.Pointer strerror(int);
descriptor: (I)Lcom/sun/jna/Pointer;
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
Exceptions:
throws com.sun.jna.LastErrorException
MethodParameters:
Name Flags
errnum
private static native long getpid();
descriptor: ()J
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
Exceptions:
throws com.sun.jna.LastErrorException
public int callMlockall(int);
descriptor: (I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: iload 1
invokestatic org.apache.cassandra.utils.NativeLibraryDarwin.mlockall:(I)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/utils/NativeLibraryDarwin;
0 1 1 flags I
Exceptions:
throws java.lang.UnsatisfiedLinkError, java.lang.RuntimeException
MethodParameters:
Name Flags
flags
public int callMunlockall();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: invokestatic org.apache.cassandra.utils.NativeLibraryDarwin.munlockall:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/utils/NativeLibraryDarwin;
Exceptions:
throws java.lang.UnsatisfiedLinkError, java.lang.RuntimeException
public int callFcntl(int, int, long);
descriptor: (IIJ)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 1
iload 2
lload 3
invokestatic org.apache.cassandra.utils.NativeLibraryDarwin.fcntl:(IIJ)I
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/utils/NativeLibraryDarwin;
0 1 1 fd I
0 1 2 command I
0 1 3 flags J
Exceptions:
throws java.lang.UnsatisfiedLinkError, java.lang.RuntimeException
MethodParameters:
Name Flags
fd
command
flags
public int callPosixFadvise(int, long, int, int);
descriptor: (IJII)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=6, args_size=5
start local 0 start local 1 start local 2 start local 4 start local 5 0: new java.lang.UnsatisfiedLinkError
dup
invokespecial java.lang.UnsatisfiedLinkError.<init>:()V
athrow
end local 5 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/utils/NativeLibraryDarwin;
0 1 1 fd I
0 1 2 offset J
0 1 4 len I
0 1 5 flag I
Exceptions:
throws java.lang.UnsatisfiedLinkError, java.lang.RuntimeException
MethodParameters:
Name Flags
fd
offset
len
flag
public int callOpen(java.lang.String, int);
descriptor: (Ljava/lang/String;I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
iload 2
invokestatic org.apache.cassandra.utils.NativeLibraryDarwin.open:(Ljava/lang/String;I)I
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/utils/NativeLibraryDarwin;
0 1 1 path Ljava/lang/String;
0 1 2 flags I
Exceptions:
throws java.lang.UnsatisfiedLinkError, java.lang.RuntimeException
MethodParameters:
Name Flags
path
flags
public int callFsync(int);
descriptor: (I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: iload 1
invokestatic org.apache.cassandra.utils.NativeLibraryDarwin.fsync:(I)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/utils/NativeLibraryDarwin;
0 1 1 fd I
Exceptions:
throws java.lang.UnsatisfiedLinkError, java.lang.RuntimeException
MethodParameters:
Name Flags
fd
public int callClose(int);
descriptor: (I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: iload 1
invokestatic org.apache.cassandra.utils.NativeLibraryDarwin.close:(I)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/utils/NativeLibraryDarwin;
0 1 1 fd I
Exceptions:
throws java.lang.UnsatisfiedLinkError, java.lang.RuntimeException
MethodParameters:
Name Flags
fd
public com.sun.jna.Pointer callStrerror(int);
descriptor: (I)Lcom/sun/jna/Pointer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: iload 1
invokestatic org.apache.cassandra.utils.NativeLibraryDarwin.strerror:(I)Lcom/sun/jna/Pointer;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/utils/NativeLibraryDarwin;
0 1 1 errnum I
Exceptions:
throws java.lang.UnsatisfiedLinkError, java.lang.RuntimeException
MethodParameters:
Name Flags
errnum
public long callGetpid();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: invokestatic org.apache.cassandra.utils.NativeLibraryDarwin.getpid:()J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/utils/NativeLibraryDarwin;
Exceptions:
throws java.lang.UnsatisfiedLinkError, java.lang.RuntimeException
public boolean isAvailable();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: getstatic org.apache.cassandra.utils.NativeLibraryDarwin.available:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/utils/NativeLibraryDarwin;
}
SourceFile: "NativeLibraryDarwin.java"