public class jdk.vm.ci.hotspot.HotSpotSpeculationLog implements jdk.vm.ci.meta.SpeculationLog
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.vm.ci.hotspot.HotSpotSpeculationLog
super_class: java.lang.Object
{
private static final byte[] NO_FLATTENED_SPECULATIONS;
descriptor: [B
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private long failedSpeculationsAddress;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private final boolean managesFailedSpeculations;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private byte[][] failedSpeculations;
descriptor: [[B
flags: (0x0002) ACC_PRIVATE
private java.util.List<byte[]> speculations;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<[B>;
private java.util.List<jdk.vm.ci.meta.SpeculationLog$SpeculationReason> speculationReasons;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<Ljdk/vm/ci/meta/SpeculationLog$SpeculationReason;>;
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=1, locals=0, args_size=0
0: ldc Ljdk/vm/ci/hotspot/HotSpotSpeculationLog;
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 jdk.vm.ci.hotspot.HotSpotSpeculationLog.$assertionsDisabled:Z
3: iconst_0
newarray 8
putstatic jdk.vm.ci.hotspot.HotSpotSpeculationLog.NO_FLATTENED_SPECULATIONS:[B
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_1
putfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.managesFailedSpeculations:Z
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/vm/ci/hotspot/HotSpotSpeculationLog;
public void <init>(long);
descriptor: (J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: lload 1
lconst_0
lcmp
ifne 3
2: new java.lang.IllegalArgumentException
dup
ldc "failedSpeculationsAddress cannot be 0"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: jdk.vm.ci.hotspot.HotSpotSpeculationLog long
StackMap stack:
aload 0
lload 1
putfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.failedSpeculationsAddress:J
4: aload 0
iconst_0
putfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.managesFailedSpeculations:Z
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/vm/ci/hotspot/HotSpotSpeculationLog;
0 6 1 failedSpeculationsAddress J
MethodParameters:
Name Flags
failedSpeculationsAddress
public long getFailedSpeculationsAddress();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=1
start local 0 0: aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.managesFailedSpeculations:Z
ifeq 11
1: aload 0
dup
astore 1
monitorenter
2: aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.failedSpeculationsAddress:J
lconst_0
lcmp
ifne 7
3: aload 0
getstatic jdk.vm.ci.hotspot.UnsafeAccess.UNSAFE:Ljdk/internal/misc/Unsafe;
invokestatic jdk.vm.ci.hotspot.HotSpotJVMCIRuntime.getHostWordKind:()Ljdk/vm/ci/meta/JavaKind;
invokevirtual jdk.vm.ci.meta.JavaKind.getByteCount:()I
i2l
invokevirtual jdk.internal.misc.Unsafe.allocateMemory:(J)J
putfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.failedSpeculationsAddress:J
4: getstatic jdk.vm.ci.hotspot.UnsafeAccess.UNSAFE:Ljdk/internal/misc/Unsafe;
aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.failedSpeculationsAddress:J
lconst_0
invokevirtual jdk.internal.misc.Unsafe.putAddress:(JJ)V
5: new jdk.vm.ci.hotspot.HotSpotSpeculationLog$LogCleaner
dup
aload 0
aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.failedSpeculationsAddress:J
invokespecial jdk.vm.ci.hotspot.HotSpotSpeculationLog$LogCleaner.<init>:(Ljdk/vm/ci/hotspot/HotSpotSpeculationLog;J)V
astore 2
start local 2 6: getstatic jdk.vm.ci.hotspot.HotSpotSpeculationLog.$assertionsDisabled:Z
ifne 7
aload 2
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog$LogCleaner.address:J
aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.failedSpeculationsAddress:J
lcmp
ifeq 7
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
end local 2 7: StackMap locals: jdk.vm.ci.hotspot.HotSpotSpeculationLog
StackMap stack:
aload 1
monitorexit
8: goto 11
StackMap locals:
StackMap stack: java.lang.Throwable
9: aload 1
monitorexit
10: athrow
11: StackMap locals:
StackMap stack:
aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.failedSpeculationsAddress:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljdk/vm/ci/hotspot/HotSpotSpeculationLog;
6 7 2 c Ljdk/vm/ci/hotspot/HotSpotSpeculationLog$LogCleaner;
Exception table:
from to target type
2 8 9 any
9 10 9 any
public boolean addFailedSpeculation(jdk.vm.ci.meta.SpeculationLog$Speculation);
descriptor: (Ljdk/vm/ci/meta/SpeculationLog$Speculation;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: invokestatic jdk.vm.ci.hotspot.CompilerToVM.compilerToVM:()Ljdk/vm/ci/hotspot/CompilerToVM;
aload 0
invokevirtual jdk.vm.ci.hotspot.HotSpotSpeculationLog.getFailedSpeculationsAddress:()J
aload 1
checkcast jdk.vm.ci.hotspot.HotSpotSpeculationLog$HotSpotSpeculation
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog$HotSpotSpeculation.encoding:[B
invokevirtual jdk.vm.ci.hotspot.CompilerToVM.addFailedSpeculation:(J[B)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/vm/ci/hotspot/HotSpotSpeculationLog;
0 1 1 speculation Ljdk/vm/ci/meta/SpeculationLog$Speculation;
MethodParameters:
Name Flags
speculation
public boolean managesFailedSpeculations();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.managesFailedSpeculations:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/vm/ci/hotspot/HotSpotSpeculationLog;
public void collectFailedSpeculations();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.failedSpeculationsAddress:J
lconst_0
lcmp
ifeq 3
getstatic jdk.vm.ci.hotspot.UnsafeAccess.UNSAFE:Ljdk/internal/misc/Unsafe;
aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.failedSpeculationsAddress:J
invokevirtual jdk.internal.misc.Unsafe.getLong:(J)J
lconst_0
lcmp
ifeq 3
1: aload 0
invokestatic jdk.vm.ci.hotspot.CompilerToVM.compilerToVM:()Ljdk/vm/ci/hotspot/CompilerToVM;
aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.failedSpeculationsAddress:J
aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.failedSpeculations:[[B
invokevirtual jdk.vm.ci.hotspot.CompilerToVM.getFailedSpeculations:(J[[B)[[B
putfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.failedSpeculations:[[B
2: getstatic jdk.vm.ci.hotspot.HotSpotSpeculationLog.$assertionsDisabled:Z
ifne 3
aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.failedSpeculations:[[B
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
ldc [[B
if_acmpeq 3
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/vm/ci/hotspot/HotSpotSpeculationLog;
byte[] getFlattenedSpeculations(boolean);
descriptor: (Z)[B
flags: (0x0000)
Code:
stack=6, locals=6, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.speculations:Ljava/util/List;
ifnonnull 2
1: getstatic jdk.vm.ci.hotspot.HotSpotSpeculationLog.NO_FLATTENED_SPECULATIONS:[B
areturn
2: StackMap locals:
StackMap stack:
iload 1
ifeq 14
3: aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.failedSpeculations:[[B
ifnonnull 4
iconst_0
goto 5
StackMap locals:
StackMap stack:
4: aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.failedSpeculations:[[B
arraylength
StackMap locals:
StackMap stack: int
5: istore 2
start local 2 6: aload 0
invokevirtual jdk.vm.ci.hotspot.HotSpotSpeculationLog.collectFailedSpeculations:()V
7: aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.failedSpeculations:[[B
ifnull 14
aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.failedSpeculations:[[B
arraylength
iload 2
if_icmpeq 14
8: aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.speculationReasons:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 13
StackMap locals: jdk.vm.ci.hotspot.HotSpotSpeculationLog int int top java.util.Iterator
StackMap stack:
9: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.vm.ci.meta.SpeculationLog$SpeculationReason
astore 3
start local 3 10: aload 3
invokestatic jdk.vm.ci.hotspot.HotSpotSpeculationLog.encode:(Ljdk/vm/ci/meta/SpeculationLog$SpeculationReason;)[B
astore 5
start local 5 11: aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.failedSpeculations:[[B
iload 2
aload 5
invokestatic jdk.vm.ci.hotspot.HotSpotSpeculationLog.contains:([[BI[B)Z
ifeq 13
12: new jdk.vm.ci.code.BailoutException
dup
iconst_0
new java.lang.StringBuilder
dup
ldc "Speculation failed: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
iconst_0
anewarray java.lang.Object
invokespecial jdk.vm.ci.code.BailoutException.<init>:(ZLjava/lang/String;[Ljava/lang/Object;)V
athrow
end local 5 end local 3 13: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 9
end local 2 14: StackMap locals: jdk.vm.ci.hotspot.HotSpotSpeculationLog int
StackMap stack:
iconst_0
istore 2
start local 2 15: aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.speculations:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 18
StackMap locals: jdk.vm.ci.hotspot.HotSpotSpeculationLog int int top java.util.Iterator
StackMap stack:
16: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast byte[]
astore 3
start local 3 17: iload 2
aload 3
arraylength
iadd
istore 2
end local 3 18: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 16
19: iload 2
newarray 8
astore 3
start local 3 20: iconst_0
istore 2
21: aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.speculations:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 25
StackMap locals: jdk.vm.ci.hotspot.HotSpotSpeculationLog int int byte[] top java.util.Iterator
StackMap stack:
22: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast byte[]
astore 4
start local 4 23: aload 4
iconst_0
aload 3
iload 2
aload 4
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
24: iload 2
aload 4
arraylength
iadd
istore 2
end local 4 25: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 22
26: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 this Ljdk/vm/ci/hotspot/HotSpotSpeculationLog;
0 27 1 validate Z
6 14 2 newFailuresStart I
10 13 3 reason Ljdk/vm/ci/meta/SpeculationLog$SpeculationReason;
11 13 5 encoding [B
15 27 2 size I
17 18 3 s [B
20 27 3 result [B
23 25 4 s [B
MethodParameters:
Name Flags
validate
public boolean maySpeculate(jdk.vm.ci.meta.SpeculationLog$SpeculationReason);
descriptor: (Ljdk/vm/ci/meta/SpeculationLog$SpeculationReason;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.failedSpeculations:[[B
ifnonnull 2
1: aload 0
invokevirtual jdk.vm.ci.hotspot.HotSpotSpeculationLog.collectFailedSpeculations:()V
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.failedSpeculations:[[B
ifnull 7
aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.failedSpeculations:[[B
arraylength
ifeq 7
3: aload 1
invokestatic jdk.vm.ci.hotspot.HotSpotSpeculationLog.encode:(Ljdk/vm/ci/meta/SpeculationLog$SpeculationReason;)[B
astore 2
start local 2 4: aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.failedSpeculations:[[B
iconst_0
aload 2
invokestatic jdk.vm.ci.hotspot.HotSpotSpeculationLog.contains:([[BI[B)Z
ifeq 5
iconst_0
goto 6
StackMap locals: byte[]
StackMap stack:
5: iconst_1
StackMap locals:
StackMap stack: int
6: ireturn
end local 2 7: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/vm/ci/hotspot/HotSpotSpeculationLog;
0 8 1 reason Ljdk/vm/ci/meta/SpeculationLog$SpeculationReason;
4 7 2 encoding [B
MethodParameters:
Name Flags
reason
private static boolean contains(byte[][], int, byte[]);
descriptor: ([[BI[B)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=5, args_size=3
start local 0 start local 1 start local 2 0: iload 1
istore 3
start local 3 1: goto 6
2: StackMap locals: int
StackMap stack:
aload 0
iload 3
aaload
astore 4
start local 4 3: aload 4
aload 2
invokestatic java.util.Arrays.equals:([B[B)Z
ifeq 5
4: iconst_1
ireturn
end local 4 5: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
6: iload 3
aload 0
arraylength
if_icmplt 2
end local 3 7: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 haystack [[B
0 8 1 fromIndex I
0 8 2 needle [B
1 7 3 i I
3 5 4 fs [B
MethodParameters:
Name Flags
haystack
fromIndex
needle
private static long encodeIndexAndLength(int, int);
descriptor: (II)J
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: iload 0
i2l
bipush 32
lshl
iload 1
i2l
lor
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 index I
0 1 1 length I
MethodParameters:
Name Flags
index
length
private static int decodeIndex(long);
descriptor: (J)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: lload 0
bipush 32
lushr
l2i
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 indexAndLength J
MethodParameters:
Name Flags
indexAndLength
private static int decodeLength(long);
descriptor: (J)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: lload 0
l2i
iconst_m1
iand
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 indexAndLength J
MethodParameters:
Name Flags
indexAndLength
public jdk.vm.ci.meta.SpeculationLog$Speculation speculate(jdk.vm.ci.meta.SpeculationLog$SpeculationReason);
descriptor: (Ljdk/vm/ci/meta/SpeculationLog$SpeculationReason;)Ljdk/vm/ci/meta/SpeculationLog$Speculation;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, args_size=2
start local 0 start local 1 0: aload 1
invokestatic jdk.vm.ci.hotspot.HotSpotSpeculationLog.encode:(Ljdk/vm/ci/meta/SpeculationLog$SpeculationReason;)[B
astore 2
start local 2 1: aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.speculations:Ljava/util/List;
ifnonnull 8
2: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.speculations:Ljava/util/List;
3: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.speculationReasons:Ljava/util/List;
4: iconst_0
aload 2
arraylength
invokestatic jdk.vm.ci.hotspot.HotSpotSpeculationLog.encodeIndexAndLength:(II)J
invokestatic jdk.vm.ci.meta.JavaConstant.forLong:(J)Ljdk/vm/ci/meta/PrimitiveConstant;
astore 3
start local 3 5: aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.speculations:Ljava/util/List;
aload 2
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
6: aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.speculationReasons:Ljava/util/List;
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
7: goto 21
end local 3 8: StackMap locals: byte[]
StackMap stack:
aconst_null
astore 3
start local 3 9: iconst_0
istore 4
start local 4 10: aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.speculations:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 16
StackMap locals: jdk.vm.ci.hotspot.HotSpotSpeculationLog jdk.vm.ci.meta.SpeculationLog$SpeculationReason byte[] jdk.vm.ci.meta.JavaConstant int top java.util.Iterator
StackMap stack:
11: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast byte[]
astore 5
start local 5 12: aload 5
aload 2
invokestatic java.util.Arrays.equals:([B[B)Z
ifeq 15
13: iload 4
aload 5
arraylength
invokestatic jdk.vm.ci.hotspot.HotSpotSpeculationLog.encodeIndexAndLength:(II)J
invokestatic jdk.vm.ci.meta.JavaConstant.forLong:(J)Ljdk/vm/ci/meta/PrimitiveConstant;
astore 3
14: goto 17
15: StackMap locals: jdk.vm.ci.hotspot.HotSpotSpeculationLog jdk.vm.ci.meta.SpeculationLog$SpeculationReason byte[] jdk.vm.ci.meta.JavaConstant int byte[] java.util.Iterator
StackMap stack:
iload 4
aload 5
arraylength
iadd
istore 4
end local 5 16: StackMap locals: jdk.vm.ci.hotspot.HotSpotSpeculationLog jdk.vm.ci.meta.SpeculationLog$SpeculationReason byte[] jdk.vm.ci.meta.JavaConstant int top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 11
17: StackMap locals: jdk.vm.ci.hotspot.HotSpotSpeculationLog jdk.vm.ci.meta.SpeculationLog$SpeculationReason byte[] jdk.vm.ci.meta.JavaConstant int
StackMap stack:
aload 3
ifnonnull 21
18: iload 4
aload 2
arraylength
invokestatic jdk.vm.ci.hotspot.HotSpotSpeculationLog.encodeIndexAndLength:(II)J
invokestatic jdk.vm.ci.meta.JavaConstant.forLong:(J)Ljdk/vm/ci/meta/PrimitiveConstant;
astore 3
19: aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.speculations:Ljava/util/List;
aload 2
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
20: aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.speculationReasons:Ljava/util/List;
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 4 21: StackMap locals:
StackMap stack:
new jdk.vm.ci.hotspot.HotSpotSpeculationLog$HotSpotSpeculation
dup
aload 1
aload 3
aload 2
invokespecial jdk.vm.ci.hotspot.HotSpotSpeculationLog$HotSpotSpeculation.<init>:(Ljdk/vm/ci/meta/SpeculationLog$SpeculationReason;Ljdk/vm/ci/meta/JavaConstant;[B)V
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Ljdk/vm/ci/hotspot/HotSpotSpeculationLog;
0 22 1 reason Ljdk/vm/ci/meta/SpeculationLog$SpeculationReason;
1 22 2 encoding [B
5 8 3 id Ljdk/vm/ci/meta/JavaConstant;
9 22 3 id Ljdk/vm/ci/meta/JavaConstant;
10 21 4 flattenedIndex I
12 16 5 fs [B
MethodParameters:
Name Flags
reason
private static byte[] encode(jdk.vm.ci.meta.SpeculationLog$SpeculationReason);
descriptor: (Ljdk/vm/ci/meta/SpeculationLog$SpeculationReason;)[B
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=3, args_size=1
start local 0 0: aload 0
invokedynamic get()Ljava/util/function/Supplier;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
jdk/vm/ci/hotspot/HotSpotSpeculationEncoding.<init>()V (8)
()Ljdk/vm/ci/meta/SpeculationLog$SpeculationReasonEncoding;
invokeinterface jdk.vm.ci.meta.SpeculationLog$SpeculationReason.encode:(Ljava/util/function/Supplier;)Ljdk/vm/ci/meta/SpeculationLog$SpeculationReasonEncoding;
checkcast jdk.vm.ci.hotspot.HotSpotSpeculationEncoding
astore 1
start local 1 1: aload 1
ifnonnull 2
aconst_null
goto 3
StackMap locals: jdk.vm.ci.hotspot.HotSpotSpeculationEncoding
StackMap stack:
2: aload 1
invokevirtual jdk.vm.ci.hotspot.HotSpotSpeculationEncoding.getByteArray:()[B
StackMap locals:
StackMap stack: byte[]
3: astore 2
start local 2 4: aload 2
ifnonnull 6
5: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc Ljdk/vm/ci/hotspot/HotSpotSpeculationLog;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " expects "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ".encode() to return a non-empty encoding"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: byte[]
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 reason Ljdk/vm/ci/meta/SpeculationLog$SpeculationReason;
1 7 1 encoding Ljdk/vm/ci/hotspot/HotSpotSpeculationEncoding;
4 7 2 result [B
MethodParameters:
Name Flags
reason
public boolean hasSpeculations();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.speculations:Ljava/util/List;
ifnull 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/vm/ci/hotspot/HotSpotSpeculationLog;
public jdk.vm.ci.meta.SpeculationLog$Speculation lookupSpeculation(jdk.vm.ci.meta.JavaConstant);
descriptor: (Ljdk/vm/ci/meta/JavaConstant;)Ljdk/vm/ci/meta/SpeculationLog$Speculation;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface jdk.vm.ci.meta.JavaConstant.isDefaultForKind:()Z
ifeq 2
1: getstatic jdk.vm.ci.hotspot.HotSpotSpeculationLog.NO_SPECULATION:Ljdk/vm/ci/meta/SpeculationLog$Speculation;
areturn
2: StackMap locals:
StackMap stack:
aload 1
invokeinterface jdk.vm.ci.meta.JavaConstant.asLong:()J
invokestatic jdk.vm.ci.hotspot.HotSpotSpeculationLog.decodeIndex:(J)I
istore 2
start local 2 3: iconst_0
istore 3
start local 3 4: aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.speculations:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 11
StackMap locals: jdk.vm.ci.hotspot.HotSpotSpeculationLog jdk.vm.ci.meta.JavaConstant int int top java.util.Iterator
StackMap stack:
5: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast byte[]
astore 4
start local 4 6: iload 2
ifne 9
7: aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.speculationReasons:Ljava/util/List;
iload 3
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast jdk.vm.ci.meta.SpeculationLog$SpeculationReason
astore 6
start local 6 8: new jdk.vm.ci.hotspot.HotSpotSpeculationLog$HotSpotSpeculation
dup
aload 6
aload 1
aload 4
invokespecial jdk.vm.ci.hotspot.HotSpotSpeculationLog$HotSpotSpeculation.<init>:(Ljdk/vm/ci/meta/SpeculationLog$SpeculationReason;Ljdk/vm/ci/meta/JavaConstant;[B)V
areturn
end local 6 9: StackMap locals: jdk.vm.ci.hotspot.HotSpotSpeculationLog jdk.vm.ci.meta.JavaConstant int int byte[] java.util.Iterator
StackMap stack:
iinc 3 1
10: iload 2
aload 4
arraylength
isub
istore 2
end local 4 11: StackMap locals: jdk.vm.ci.hotspot.HotSpotSpeculationLog jdk.vm.ci.meta.JavaConstant int int top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
12: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Unknown encoded speculation: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
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 13 0 this Ljdk/vm/ci/hotspot/HotSpotSpeculationLog;
0 13 1 constant Ljdk/vm/ci/meta/JavaConstant;
3 13 2 flattenedIndex I
4 13 3 index I
6 11 4 s [B
8 9 6 reason Ljdk/vm/ci/meta/SpeculationLog$SpeculationReason;
MethodParameters:
Name Flags
constant
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=6, args_size=1
start local 0 0: new java.util.Formatter
dup
invokespecial java.util.Formatter.<init>:()V
astore 1
start local 1 1: aload 1
ldc "{managed:%s, failedSpeculationsAddress:0x%x, failedSpeculations:["
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.managesFailedSpeculations:Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
aastore
dup
iconst_1
aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.failedSpeculationsAddress:J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
invokevirtual java.util.Formatter.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/Formatter;
pop
2: ldc ""
astore 2
start local 2 3: aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.failedSpeculations:[[B
ifnull 10
4: iconst_0
istore 3
start local 3 5: goto 9
6: StackMap locals: java.util.Formatter java.lang.String int
StackMap stack:
aload 1
ldc "%s{len:%d, hash:0x%x}"
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
dup
iconst_1
aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.failedSpeculations:[[B
iload 3
aaload
arraylength
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_2
aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.failedSpeculations:[[B
iload 3
aaload
invokestatic java.util.Arrays.hashCode:([B)I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokevirtual java.util.Formatter.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/Formatter;
pop
7: ldc ", "
astore 2
8: iinc 3 1
StackMap locals:
StackMap stack:
9: iload 3
aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.failedSpeculations:[[B
arraylength
if_icmplt 6
end local 3 10: StackMap locals:
StackMap stack:
aload 1
ldc "], speculations:["
iconst_0
anewarray java.lang.Object
invokevirtual java.util.Formatter.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/Formatter;
pop
11: iconst_0
istore 3
start local 3 12: aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.speculations:Ljava/util/List;
ifnull 22
13: ldc ""
astore 2
14: iconst_0
istore 4
start local 4 15: goto 21
16: StackMap locals: int int
StackMap stack:
aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.speculations:Ljava/util/List;
iload 4
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast byte[]
astore 5
start local 5 17: iload 3
aload 5
arraylength
iadd
istore 3
18: aload 1
ldc "%s{len:%d, hash:0x%x, reason:{%s}}"
iconst_4
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
dup
iconst_1
aload 5
arraylength
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_2
aload 5
invokestatic java.util.Arrays.hashCode:([B)I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_3
aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.speculationReasons:Ljava/util/List;
iload 4
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
aastore
invokevirtual java.util.Formatter.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/Formatter;
pop
19: ldc ", "
astore 2
end local 5 20: iinc 4 1
StackMap locals:
StackMap stack:
21: iload 4
aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.speculations:Ljava/util/List;
invokeinterface java.util.List.size:()I
if_icmplt 16
end local 4 22: StackMap locals:
StackMap stack:
aload 1
ldc "], len:%d, hash:0x%x}"
iconst_2
anewarray java.lang.Object
dup
iconst_0
iload 3
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
aload 0
iconst_0
invokevirtual jdk.vm.ci.hotspot.HotSpotSpeculationLog.getFlattenedSpeculations:(Z)[B
invokestatic java.util.Arrays.hashCode:([B)I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokevirtual java.util.Formatter.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/Formatter;
pop
23: aload 1
invokevirtual java.util.Formatter.toString:()Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Ljdk/vm/ci/hotspot/HotSpotSpeculationLog;
1 24 1 buf Ljava/util/Formatter;
3 24 2 sep Ljava/lang/String;
5 10 3 i I
12 24 3 size I
15 22 4 i I
17 20 5 s [B
}
SourceFile: "HotSpotSpeculationLog.java"
NestMembers:
jdk.vm.ci.hotspot.HotSpotSpeculationLog$HotSpotSpeculation jdk.vm.ci.hotspot.HotSpotSpeculationLog$LogCleaner
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public final HotSpotSpeculation = jdk.vm.ci.hotspot.HotSpotSpeculationLog$HotSpotSpeculation of jdk.vm.ci.hotspot.HotSpotSpeculationLog
private final LogCleaner = jdk.vm.ci.hotspot.HotSpotSpeculationLog$LogCleaner of jdk.vm.ci.hotspot.HotSpotSpeculationLog
public Speculation = jdk.vm.ci.meta.SpeculationLog$Speculation of jdk.vm.ci.meta.SpeculationLog
public abstract SpeculationReason = jdk.vm.ci.meta.SpeculationLog$SpeculationReason of jdk.vm.ci.meta.SpeculationLog
public abstract SpeculationReasonEncoding = jdk.vm.ci.meta.SpeculationLog$SpeculationReasonEncoding of jdk.vm.ci.meta.SpeculationLog