public final class org.apache.cassandra.utils.WindowsTimer
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.apache.cassandra.utils.WindowsTimer
super_class: java.lang.Object
{
private static final org.slf4j.Logger logger;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
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=2, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/utils/WindowsTimer;
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 org.apache.cassandra.utils.WindowsTimer.$assertionsDisabled:Z
3: ldc Lorg/apache/cassandra/utils/WindowsTimer;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.utils.WindowsTimer.logger:Lorg/slf4j/Logger;
4: ldc "winmm"
invokestatic com.sun.jna.Native.register:(Ljava/lang/String;)V
5: goto 10
6: StackMap locals:
StackMap stack: java.lang.NoClassDefFoundError
pop
7: getstatic org.apache.cassandra.utils.WindowsTimer.logger:Lorg/slf4j/Logger;
ldc "JNA not found. winmm.dll cannot be registered. Performance will be negatively impacted on this node."
invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;)V
goto 10
8: StackMap locals:
StackMap stack: java.lang.Exception
pop
9: getstatic org.apache.cassandra.utils.WindowsTimer.logger:Lorg/slf4j/Logger;
ldc "Failed to register winmm.dll. Performance will be negatively impacted on this node."
invokeinterface org.slf4j.Logger.error:(Ljava/lang/String;)V
10: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
4 5 6 Class java.lang.NoClassDefFoundError
4 5 8 Class java.lang.Exception
private static native int timeBeginPeriod(int);
descriptor: (I)I
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
Exceptions:
throws com.sun.jna.LastErrorException
MethodParameters:
Name Flags
period
private static native int timeEndPeriod(int);
descriptor: (I)I
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
Exceptions:
throws com.sun.jna.LastErrorException
MethodParameters:
Name Flags
period
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
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/WindowsTimer;
public static void startTimerPeriod(int);
descriptor: (I)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: iload 0
ifne 2
1: return
2: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.utils.WindowsTimer.$assertionsDisabled:Z
ifne 3
iload 0
ifgt 3
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
3: StackMap locals:
StackMap stack:
iload 0
invokestatic org.apache.cassandra.utils.WindowsTimer.timeBeginPeriod:(I)I
ifeq 5
4: getstatic org.apache.cassandra.utils.WindowsTimer.logger:Lorg/slf4j/Logger;
ldc "Failed to set timer to : {}. Performance will be degraded."
iload 0
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;Ljava/lang/Object;)V
5: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 period I
MethodParameters:
Name Flags
period
public static void endTimerPeriod(int);
descriptor: (I)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: iload 0
ifne 2
1: return
2: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.utils.WindowsTimer.$assertionsDisabled:Z
ifne 3
iload 0
ifgt 3
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
3: StackMap locals:
StackMap stack:
iload 0
invokestatic org.apache.cassandra.utils.WindowsTimer.timeEndPeriod:(I)I
ifeq 5
4: getstatic org.apache.cassandra.utils.WindowsTimer.logger:Lorg/slf4j/Logger;
ldc "Failed to end accelerated timer period. System timer will remain set to: {} ms."
iload 0
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;Ljava/lang/Object;)V
5: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 period I
MethodParameters:
Name Flags
period
}
SourceFile: "WindowsTimer.java"