public final class jdk.internal.perf.Perf
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: jdk.internal.perf.Perf
super_class: java.lang.Object
{
private static jdk.internal.perf.Perf instance;
descriptor: Ljdk/internal/perf/Perf;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static final int PERF_MODE_RO;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 0
private static final int PERF_MODE_RW;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: invokestatic jdk.internal.perf.Perf.registerNatives:()V
1: new jdk.internal.perf.Perf
dup
invokespecial jdk.internal.perf.Perf.<init>:()V
putstatic jdk.internal.perf.Perf.instance:Ljdk/internal/perf/Perf;
2: return
LocalVariableTable:
Start End Slot Name Signature
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 Ljdk/internal/perf/Perf;
public static jdk.internal.perf.Perf getPerf();
descriptor: ()Ljdk/internal/perf/Perf;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=0
0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 0
start local 0 1: aload 0
ifnull 4
2: new java.lang.RuntimePermission
dup
ldc "jdk.internal.perf.Perf.getPerf"
invokespecial java.lang.RuntimePermission.<init>:(Ljava/lang/String;)V
astore 1
start local 1 3: aload 0
aload 1
invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
end local 1 4: StackMap locals: java.lang.SecurityManager
StackMap stack:
getstatic jdk.internal.perf.Perf.instance:Ljdk/internal/perf/Perf;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 5 0 security Ljava/lang/SecurityManager;
3 4 1 perm Ljava/security/Permission;
public java.nio.ByteBuffer attach(int, java.lang.String);
descriptor: (ILjava/lang/String;)Ljava/nio/ByteBuffer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ldc "r"
invokevirtual java.lang.String.compareTo:(Ljava/lang/String;)I
ifne 2
1: aload 0
aconst_null
iload 1
iconst_0
invokevirtual jdk.internal.perf.Perf.attachImpl:(Ljava/lang/String;II)Ljava/nio/ByteBuffer;
areturn
2: StackMap locals:
StackMap stack:
aload 2
ldc "rw"
invokevirtual java.lang.String.compareTo:(Ljava/lang/String;)I
ifne 4
3: aload 0
aconst_null
iload 1
iconst_1
invokevirtual jdk.internal.perf.Perf.attachImpl:(Ljava/lang/String;II)Ljava/nio/ByteBuffer;
areturn
4: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "unknown mode"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/perf/Perf;
0 5 1 lvmid I
0 5 2 mode Ljava/lang/String;
Exceptions:
throws java.lang.IllegalArgumentException, java.io.IOException
MethodParameters:
Name Flags
lvmid
mode
public java.nio.ByteBuffer attach(java.lang.String, int, java.lang.String);
descriptor: (Ljava/lang/String;ILjava/lang/String;)Ljava/nio/ByteBuffer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
ldc "r"
invokevirtual java.lang.String.compareTo:(Ljava/lang/String;)I
ifne 2
1: aload 0
aload 1
iload 2
iconst_0
invokevirtual jdk.internal.perf.Perf.attachImpl:(Ljava/lang/String;II)Ljava/nio/ByteBuffer;
areturn
2: StackMap locals:
StackMap stack:
aload 3
ldc "rw"
invokevirtual java.lang.String.compareTo:(Ljava/lang/String;)I
ifne 4
3: aload 0
aload 1
iload 2
iconst_1
invokevirtual jdk.internal.perf.Perf.attachImpl:(Ljava/lang/String;II)Ljava/nio/ByteBuffer;
areturn
4: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "unknown mode"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/perf/Perf;
0 5 1 user Ljava/lang/String;
0 5 2 lvmid I
0 5 3 mode Ljava/lang/String;
Exceptions:
throws java.lang.IllegalArgumentException, java.io.IOException
MethodParameters:
Name Flags
user
lvmid
mode
private java.nio.ByteBuffer attachImpl(java.lang.String, int, int);
descriptor: (Ljava/lang/String;II)Ljava/nio/ByteBuffer;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
iload 2
iload 3
invokevirtual jdk.internal.perf.Perf.attach:(Ljava/lang/String;II)Ljava/nio/ByteBuffer;
astore 4
start local 4 1: iload 2
ifne 3
2: aload 4
areturn
3: StackMap locals: java.nio.ByteBuffer
StackMap stack:
aload 4
invokevirtual java.nio.ByteBuffer.duplicate:()Ljava/nio/ByteBuffer;
astore 5
start local 5 4: invokestatic jdk.internal.ref.CleanerFactory.cleaner:()Ljava/lang/ref/Cleaner;
5: aload 5
new jdk.internal.perf.Perf$CleanerAction
dup
getstatic jdk.internal.perf.Perf.instance:Ljdk/internal/perf/Perf;
aload 4
invokespecial jdk.internal.perf.Perf$CleanerAction.<init>:(Ljdk/internal/perf/Perf;Ljava/nio/ByteBuffer;)V
invokevirtual java.lang.ref.Cleaner.register:(Ljava/lang/Object;Ljava/lang/Runnable;)Ljava/lang/ref/Cleaner$Cleanable;
pop
6: aload 5
areturn
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 7 0 this Ljdk/internal/perf/Perf;
0 7 1 user Ljava/lang/String;
0 7 2 lvmid I
0 7 3 mode I
1 7 4 b Ljava/nio/ByteBuffer;
4 7 5 dup Ljava/nio/ByteBuffer;
Exceptions:
throws java.lang.IllegalArgumentException, java.io.IOException
MethodParameters:
Name Flags
user
lvmid
mode
private native java.nio.ByteBuffer attach(java.lang.String, int, int);
descriptor: (Ljava/lang/String;II)Ljava/nio/ByteBuffer;
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
Exceptions:
throws java.lang.IllegalArgumentException, java.io.IOException
MethodParameters:
Name Flags
user
lvmid
mode
private native void detach(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)V
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
MethodParameters:
Name Flags
bb
public native java.nio.ByteBuffer createLong(java.lang.String, int, int, long);
descriptor: (Ljava/lang/String;IIJ)Ljava/nio/ByteBuffer;
flags: (0x0101) ACC_PUBLIC, ACC_NATIVE
MethodParameters:
Name Flags
name
variability
units
value
public java.nio.ByteBuffer createString(java.lang.String, int, int, java.lang.String, int);
descriptor: (Ljava/lang/String;IILjava/lang/String;I)Ljava/nio/ByteBuffer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=8, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 4
invokestatic jdk.internal.perf.Perf.getBytes:(Ljava/lang/String;)[B
astore 6
start local 6 1: aload 6
arraylength
iconst_1
iadd
newarray 8
astore 7
start local 7 2: aload 6
iconst_0
aload 7
iconst_0
aload 6
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
3: aload 7
aload 6
arraylength
iconst_0
bastore
4: aload 0
aload 1
iload 2
iload 3
aload 7
aload 7
arraylength
iload 5
invokestatic java.lang.Math.max:(II)I
invokevirtual jdk.internal.perf.Perf.createByteArray:(Ljava/lang/String;II[BI)Ljava/nio/ByteBuffer;
areturn
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 5 0 this Ljdk/internal/perf/Perf;
0 5 1 name Ljava/lang/String;
0 5 2 variability I
0 5 3 units I
0 5 4 value Ljava/lang/String;
0 5 5 maxLength I
1 5 6 v [B
2 5 7 v1 [B
MethodParameters:
Name Flags
name
variability
units
value
maxLength
public java.nio.ByteBuffer createString(java.lang.String, int, int, java.lang.String);
descriptor: (Ljava/lang/String;IILjava/lang/String;)Ljava/nio/ByteBuffer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=7, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 4
invokestatic jdk.internal.perf.Perf.getBytes:(Ljava/lang/String;)[B
astore 5
start local 5 1: aload 5
arraylength
iconst_1
iadd
newarray 8
astore 6
start local 6 2: aload 5
iconst_0
aload 6
iconst_0
aload 5
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
3: aload 6
aload 5
arraylength
iconst_0
bastore
4: aload 0
aload 1
iload 2
iload 3
aload 6
aload 6
arraylength
invokevirtual jdk.internal.perf.Perf.createByteArray:(Ljava/lang/String;II[BI)Ljava/nio/ByteBuffer;
areturn
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 5 0 this Ljdk/internal/perf/Perf;
0 5 1 name Ljava/lang/String;
0 5 2 variability I
0 5 3 units I
0 5 4 value Ljava/lang/String;
1 5 5 v [B
2 5 6 v1 [B
MethodParameters:
Name Flags
name
variability
units
value
public native java.nio.ByteBuffer createByteArray(java.lang.String, int, int, byte[], int);
descriptor: (Ljava/lang/String;II[BI)Ljava/nio/ByteBuffer;
flags: (0x0101) ACC_PUBLIC, ACC_NATIVE
MethodParameters:
Name Flags
name
variability
units
value
maxLength
private static byte[] getBytes(java.lang.String);
descriptor: (Ljava/lang/String;)[B
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: aload 0
ldc "UTF-8"
invokevirtual java.lang.String.getBytes:(Ljava/lang/String;)[B
astore 1
2: goto 4
3: StackMap locals: java.lang.String byte[]
StackMap stack: java.io.UnsupportedEncodingException
pop
4: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 s Ljava/lang/String;
1 5 1 bytes [B
Exception table:
from to target type
1 2 3 Class java.io.UnsupportedEncodingException
MethodParameters:
Name Flags
s
public native long highResCounter();
descriptor: ()J
flags: (0x0101) ACC_PUBLIC, ACC_NATIVE
public native long highResFrequency();
descriptor: ()J
flags: (0x0101) ACC_PUBLIC, ACC_NATIVE
private static native void registerNatives();
descriptor: ()V
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
}
SourceFile: "Perf.java"
NestMembers:
jdk.internal.perf.Perf$CleanerAction jdk.internal.perf.Perf$GetPerfAction
InnerClasses:
public abstract Cleanable = java.lang.ref.Cleaner$Cleanable of java.lang.ref.Cleaner
private CleanerAction = jdk.internal.perf.Perf$CleanerAction of jdk.internal.perf.Perf
public GetPerfAction = jdk.internal.perf.Perf$GetPerfAction of jdk.internal.perf.Perf