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 volatile long lastFailed;
descriptor: J
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private java.util.Set<jdk.vm.ci.meta.SpeculationLog$SpeculationReason> failedSpeculations;
descriptor: Ljava/util/Set;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Set<Ljdk/vm/ci/meta/SpeculationLog$SpeculationReason;>;
private java.util.Map<java.lang.Long, jdk.vm.ci.meta.SpeculationLog$SpeculationReason> speculations;
descriptor: Ljava/util/Map;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Map<Ljava/lang/Long;Ljdk/vm/ci/meta/SpeculationLog$SpeculationReason;>;
private long currentSpeculationID;
descriptor: J
flags: (0x0002) ACC_PRIVATE
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
return
LocalVariableTable:
Start End Slot Name Signature
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 Ljdk/vm/ci/hotspot/HotSpotSpeculationLog;
public synchronized void collectFailedSpeculations();
descriptor: ()V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.lastFailed:J
lconst_0
lcmp
ifeq 9
1: aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.failedSpeculations:Ljava/util/Set;
ifnonnull 3
2: aload 0
new java.util.HashSet
dup
iconst_2
invokespecial java.util.HashSet.<init>:(I)V
putfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.failedSpeculations:Ljava/util/Set;
3: StackMap locals:
StackMap stack:
aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.speculations:Ljava/util/Map;
ifnull 9
4: aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.speculations:Ljava/util/Map;
aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.lastFailed:J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast jdk.vm.ci.meta.SpeculationLog$SpeculationReason
astore 1
start local 1 5: aload 1
ifnull 7
6: aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.failedSpeculations:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
7: StackMap locals: jdk.vm.ci.meta.SpeculationLog$SpeculationReason
StackMap stack:
aload 0
lconst_0
putfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.lastFailed:J
8: aload 0
aconst_null
putfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.speculations:Ljava/util/Map;
end local 1 9: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljdk/vm/ci/hotspot/HotSpotSpeculationLog;
5 9 1 lastFailedSpeculation Ljdk/vm/ci/meta/SpeculationLog$SpeculationReason;
public synchronized boolean maySpeculate(jdk.vm.ci.meta.SpeculationLog$SpeculationReason);
descriptor: (Ljdk/vm/ci/meta/SpeculationLog$SpeculationReason;)Z
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.failedSpeculations:Ljava/util/Set;
ifnull 2
aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.failedSpeculations:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/vm/ci/hotspot/HotSpotSpeculationLog;
0 3 1 reason Ljdk/vm/ci/meta/SpeculationLog$SpeculationReason;
MethodParameters:
Name Flags
reason
public synchronized 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: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.speculations:Ljava/util/Map;
ifnonnull 2
1: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.speculations:Ljava/util/Map;
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.speculations:Ljava/util/Map;
aload 0
dup
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.currentSpeculationID:J
lconst_1
ladd
dup2_x1
putfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.currentSpeculationID:J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aload 1
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
3: new jdk.vm.ci.hotspot.HotSpotSpeculationLog$HotSpotSpeculation
dup
aload 1
aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.currentSpeculationID:J
invokestatic jdk.vm.ci.meta.JavaConstant.forLong:(J)Ljdk/vm/ci/meta/PrimitiveConstant;
invokespecial jdk.vm.ci.hotspot.HotSpotSpeculationLog$HotSpotSpeculation.<init>:(Ljdk/vm/ci/meta/SpeculationLog$SpeculationReason;Ljdk/vm/ci/meta/JavaConstant;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/vm/ci/hotspot/HotSpotSpeculationLog;
0 4 1 reason Ljdk/vm/ci/meta/SpeculationLog$SpeculationReason;
MethodParameters:
Name Flags
reason
public synchronized boolean hasSpeculations();
descriptor: ()Z
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.speculations:Ljava/util/Map;
ifnull 1
aload 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.speculations:Ljava/util/Map;
invokeinterface java.util.Map.isEmpty:()Z
ifne 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 synchronized 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: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=3, 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 0
getfield jdk.vm.ci.hotspot.HotSpotSpeculationLog.speculations:Ljava/util/Map;
aload 1
invokeinterface jdk.vm.ci.meta.JavaConstant.asLong:()J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast jdk.vm.ci.meta.SpeculationLog$SpeculationReason
astore 2
start local 2 3: getstatic jdk.vm.ci.hotspot.HotSpotSpeculationLog.$assertionsDisabled:Z
ifne 4
aload 2
ifnonnull 4
new java.lang.AssertionError
dup
ldc "Speculation should have been registered"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
4: StackMap locals: jdk.vm.ci.meta.SpeculationLog$SpeculationReason
StackMap stack:
new jdk.vm.ci.hotspot.HotSpotSpeculationLog$HotSpotSpeculation
dup
aload 2
aload 1
invokespecial jdk.vm.ci.hotspot.HotSpotSpeculationLog$HotSpotSpeculation.<init>:(Ljdk/vm/ci/meta/SpeculationLog$SpeculationReason;Ljdk/vm/ci/meta/JavaConstant;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/vm/ci/hotspot/HotSpotSpeculationLog;
0 5 1 constant Ljdk/vm/ci/meta/JavaConstant;
3 5 2 reason Ljdk/vm/ci/meta/SpeculationLog$SpeculationReason;
MethodParameters:
Name Flags
constant
}
SourceFile: "HotSpotSpeculationLog.java"
NestMembers:
jdk.vm.ci.hotspot.HotSpotSpeculationLog$HotSpotSpeculation
InnerClasses:
public final HotSpotSpeculation = jdk.vm.ci.hotspot.HotSpotSpeculationLog$HotSpotSpeculation 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