class org.graalvm.compiler.hotspot.CompilationWatchDog implements java.lang.Runnable, java.lang.AutoCloseable
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.graalvm.compiler.hotspot.CompilationWatchDog
super_class: java.lang.Object
{
private static final int SPIN_TIMEOUT_MS;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1000
private org.graalvm.compiler.hotspot.CompilationWatchDog$WatchDogState state;
descriptor: Lorg/graalvm/compiler/hotspot/CompilationWatchDog$WatchDogState;
flags: (0x0002) ACC_PRIVATE
private final java.lang.Thread compilerThread;
descriptor: Ljava/lang/Thread;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final long startDelayMilliseconds;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final long stackTraceIntervalMilliseconds;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int nonFatalIdenticalCompilationSnapshots;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile jdk.vm.ci.meta.ResolvedJavaMethod currentMethod;
descriptor: Ljdk/vm/ci/meta/ResolvedJavaMethod;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private volatile int currentId;
descriptor: I
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private jdk.vm.ci.meta.ResolvedJavaMethod lastWatched;
descriptor: Ljdk/vm/ci/meta/ResolvedJavaMethod;
flags: (0x0002) ACC_PRIVATE
private long elapsed;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private int traceIntervals;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int numberOfIdenticalStackTraces;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private java.lang.StackTraceElement[] lastStackTrace;
descriptor: [Ljava/lang/StackTraceElement;
flags: (0x0002) ACC_PRIVATE
private static final boolean DEBUG;
descriptor: Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.ThreadLocal<org.graalvm.compiler.hotspot.CompilationWatchDog> WATCH_DOGS;
descriptor: Ljava/lang/ThreadLocal;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/lang/ThreadLocal<Lorg/graalvm/compiler/hotspot/CompilationWatchDog;>;
private static volatile int[] $SWITCH_TABLE$org$graalvm$compiler$hotspot$CompilationWatchDog$WatchDogState;
descriptor: [I
flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: invokestatic jdk.vm.ci.services.Services.getSavedProperties:()Ljava/util/Map;
ldc "debug.graal.CompilationWatchDog"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
invokestatic java.lang.Boolean.parseBoolean:(Ljava/lang/String;)Z
putstatic org.graalvm.compiler.hotspot.CompilationWatchDog.DEBUG:Z
1: new java.lang.ThreadLocal
dup
invokespecial java.lang.ThreadLocal.<init>:()V
putstatic org.graalvm.compiler.hotspot.CompilationWatchDog.WATCH_DOGS:Ljava/lang/ThreadLocal;
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(java.lang.Thread, long, long, int);
descriptor: (Ljava/lang/Thread;JJI)V
flags: (0x0000)
Code:
stack=3, locals=7, args_size=5
start local 0 start local 1 start local 2 start local 4 start local 6 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
getstatic org.graalvm.compiler.hotspot.CompilationWatchDog$WatchDogState.SLEEPING:Lorg/graalvm/compiler/hotspot/CompilationWatchDog$WatchDogState;
putfield org.graalvm.compiler.hotspot.CompilationWatchDog.state:Lorg/graalvm/compiler/hotspot/CompilationWatchDog$WatchDogState;
2: aload 0
aload 1
putfield org.graalvm.compiler.hotspot.CompilationWatchDog.compilerThread:Ljava/lang/Thread;
3: aload 0
lload 2
putfield org.graalvm.compiler.hotspot.CompilationWatchDog.startDelayMilliseconds:J
4: aload 0
lload 4
putfield org.graalvm.compiler.hotspot.CompilationWatchDog.stackTraceIntervalMilliseconds:J
5: aload 0
iload 6
putfield org.graalvm.compiler.hotspot.CompilationWatchDog.nonFatalIdenticalCompilationSnapshots:I
6: return
end local 6 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/graalvm/compiler/hotspot/CompilationWatchDog;
0 7 1 compilerThread Ljava/lang/Thread;
0 7 2 startDelayMilliseconds J
0 7 4 stackTraceIntervalMilliseconds J
0 7 6 nonFatalIdenticalCompilationSnapshots I
MethodParameters:
Name Flags
compilerThread
startDelayMilliseconds
stackTraceIntervalMilliseconds
nonFatalIdenticalCompilationSnapshots
public void startCompilation(jdk.vm.ci.meta.ResolvedJavaMethod, int);
descriptor: (Ljdk/vm/ci/meta/ResolvedJavaMethod;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
ldc "start %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
invokestatic org.graalvm.compiler.hotspot.HotSpotGraalCompiler.fmt:(Ljava/lang/Object;)Ljava/util/Formattable;
aastore
invokevirtual org.graalvm.compiler.hotspot.CompilationWatchDog.trace:(Ljava/lang/String;[Ljava/lang/Object;)V
1: aload 0
aload 1
putfield org.graalvm.compiler.hotspot.CompilationWatchDog.currentMethod:Ljdk/vm/ci/meta/ResolvedJavaMethod;
2: aload 0
iload 2
putfield org.graalvm.compiler.hotspot.CompilationWatchDog.currentId:I
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/graalvm/compiler/hotspot/CompilationWatchDog;
0 4 1 method Ljdk/vm/ci/meta/ResolvedJavaMethod;
0 4 2 id I
MethodParameters:
Name Flags
method
id
public void stopCompilation();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: aload 0
ldc " stop %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield org.graalvm.compiler.hotspot.CompilationWatchDog.currentMethod:Ljdk/vm/ci/meta/ResolvedJavaMethod;
invokestatic org.graalvm.compiler.hotspot.HotSpotGraalCompiler.fmt:(Ljava/lang/Object;)Ljava/util/Formattable;
aastore
invokevirtual org.graalvm.compiler.hotspot.CompilationWatchDog.trace:(Ljava/lang/String;[Ljava/lang/Object;)V
1: aload 0
aconst_null
putfield org.graalvm.compiler.hotspot.CompilationWatchDog.currentMethod:Ljdk/vm/ci/meta/ResolvedJavaMethod;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/graalvm/compiler/hotspot/CompilationWatchDog;
private void reset();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
lconst_0
putfield org.graalvm.compiler.hotspot.CompilationWatchDog.elapsed:J
1: aload 0
iconst_0
putfield org.graalvm.compiler.hotspot.CompilationWatchDog.traceIntervals:I
2: aload 0
iconst_0
putfield org.graalvm.compiler.hotspot.CompilationWatchDog.numberOfIdenticalStackTraces:I
3: aload 0
aconst_null
putfield org.graalvm.compiler.hotspot.CompilationWatchDog.lastWatched:Ljdk/vm/ci/meta/ResolvedJavaMethod;
4: aload 0
aconst_null
putfield org.graalvm.compiler.hotspot.CompilationWatchDog.lastStackTrace:[Ljava/lang/StackTraceElement;
5: aload 0
getstatic org.graalvm.compiler.hotspot.CompilationWatchDog$WatchDogState.SLEEPING:Lorg/graalvm/compiler/hotspot/CompilationWatchDog$WatchDogState;
putfield org.graalvm.compiler.hotspot.CompilationWatchDog.state:Lorg/graalvm/compiler/hotspot/CompilationWatchDog$WatchDogState;
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/graalvm/compiler/hotspot/CompilationWatchDog;
private void tick(org.graalvm.compiler.hotspot.CompilationWatchDog$WatchDogState);
descriptor: (Lorg/graalvm/compiler/hotspot/CompilationWatchDog$WatchDogState;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.graalvm.compiler.hotspot.CompilationWatchDog.state:Lorg/graalvm/compiler/hotspot/CompilationWatchDog$WatchDogState;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/compiler/hotspot/CompilationWatchDog;
0 2 1 newState Lorg/graalvm/compiler/hotspot/CompilationWatchDog$WatchDogState;
MethodParameters:
Name Flags
newState
private boolean recordStackTrace(java.lang.StackTraceElement[]);
descriptor: ([Ljava/lang/StackTraceElement;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.graalvm.compiler.hotspot.CompilationWatchDog.lastStackTrace:[Ljava/lang/StackTraceElement;
ifnonnull 3
1: aload 0
aload 1
putfield org.graalvm.compiler.hotspot.CompilationWatchDog.lastStackTrace:[Ljava/lang/StackTraceElement;
2: iconst_1
ireturn
3: StackMap locals:
StackMap stack:
aload 0
getfield org.graalvm.compiler.hotspot.CompilationWatchDog.lastStackTrace:[Ljava/lang/StackTraceElement;
aload 1
invokestatic java.util.Arrays.equals:([Ljava/lang/Object;[Ljava/lang/Object;)Z
ifne 6
4: aload 0
aload 1
putfield org.graalvm.compiler.hotspot.CompilationWatchDog.lastStackTrace:[Ljava/lang/StackTraceElement;
5: iconst_0
ireturn
6: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/graalvm/compiler/hotspot/CompilationWatchDog;
0 7 1 newStackTrace [Ljava/lang/StackTraceElement;
MethodParameters:
Name Flags
newStackTrace
private void trace(java.lang.String, java.lang.Object[]);
descriptor: (Ljava/lang/String;[Ljava/lang/Object;)V
flags: (0x0082) ACC_PRIVATE, ACC_VARARGS
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: getstatic org.graalvm.compiler.hotspot.CompilationWatchDog.DEBUG:Z
ifeq 2
1: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc ": "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
aload 2
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.graalvm.compiler.debug.TTY.println:(Ljava/lang/String;)V
2: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/graalvm/compiler/hotspot/CompilationWatchDog;
0 3 1 format Ljava/lang/String;
0 3 2 args [Ljava/lang/Object;
MethodParameters:
Name Flags
format
args
private static long ms(double);
descriptor: (D)J
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: dload 0
d2l
ldc 1000
lmul
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 seconds D
MethodParameters:
Name Flags
seconds
private static double secs(long);
descriptor: (J)D
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: lload 0
l2d
ldc 1000.0
ddiv
dreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 ms J
MethodParameters:
Name Flags
ms
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "WatchDog["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.graalvm.compiler.hotspot.CompilationWatchDog.compilerThread:Ljava/lang/Thread;
invokevirtual java.lang.Thread.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/hotspot/CompilationWatchDog;
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=4, args_size=1
start local 0 0: aload 0
ldc "Started%n"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
aastore
invokevirtual org.graalvm.compiler.hotspot.CompilationWatchDog.trace:(Ljava/lang/String;[Ljava/lang/Object;)V
1: StackMap locals:
StackMap stack:
aload 0
getfield org.graalvm.compiler.hotspot.CompilationWatchDog.currentMethod:Ljdk/vm/ci/meta/ResolvedJavaMethod;
astore 1
start local 1 2: aload 1
ifnonnull 5
3: aload 0
invokevirtual org.graalvm.compiler.hotspot.CompilationWatchDog.reset:()V
4: goto 56
5: StackMap locals: jdk.vm.ci.meta.ResolvedJavaMethod
StackMap stack:
invokestatic org.graalvm.compiler.hotspot.CompilationWatchDog.$SWITCH_TABLE$org$graalvm$compiler$hotspot$CompilationWatchDog$WatchDogState:()[I
aload 0
getfield org.graalvm.compiler.hotspot.CompilationWatchDog.state:Lorg/graalvm/compiler/hotspot/CompilationWatchDog$WatchDogState;
invokevirtual org.graalvm.compiler.hotspot.CompilationWatchDog$WatchDogState.ordinal:()I
iaload
tableswitch { // 1 - 3
1: 6
2: 10
3: 20
default: 56
}
6: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield org.graalvm.compiler.hotspot.CompilationWatchDog.lastWatched:Ljdk/vm/ci/meta/ResolvedJavaMethod;
7: aload 0
lconst_0
putfield org.graalvm.compiler.hotspot.CompilationWatchDog.elapsed:J
8: aload 0
getstatic org.graalvm.compiler.hotspot.CompilationWatchDog$WatchDogState.WATCHING_WITHOUT_STACK_INSPECTION:Lorg/graalvm/compiler/hotspot/CompilationWatchDog$WatchDogState;
invokevirtual org.graalvm.compiler.hotspot.CompilationWatchDog.tick:(Lorg/graalvm/compiler/hotspot/CompilationWatchDog$WatchDogState;)V
9: goto 56
10: StackMap locals:
StackMap stack:
aload 1
aload 0
getfield org.graalvm.compiler.hotspot.CompilationWatchDog.lastWatched:Ljdk/vm/ci/meta/ResolvedJavaMethod;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 18
11: aload 0
getfield org.graalvm.compiler.hotspot.CompilationWatchDog.elapsed:J
aload 0
getfield org.graalvm.compiler.hotspot.CompilationWatchDog.startDelayMilliseconds:J
lcmp
iflt 15
12: aload 0
getstatic org.graalvm.compiler.hotspot.CompilationWatchDog$WatchDogState.WATCHING_WITH_STACK_INSPECTION:Lorg/graalvm/compiler/hotspot/CompilationWatchDog$WatchDogState;
invokevirtual org.graalvm.compiler.hotspot.CompilationWatchDog.tick:(Lorg/graalvm/compiler/hotspot/CompilationWatchDog$WatchDogState;)V
13: aload 0
ldc "changes mode to watching with stack traces"
iconst_0
anewarray java.lang.Object
invokevirtual org.graalvm.compiler.hotspot.CompilationWatchDog.trace:(Ljava/lang/String;[Ljava/lang/Object;)V
14: goto 16
15: StackMap locals:
StackMap stack:
aload 0
ldc "watching without stack traces [%.2f seconds]"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield org.graalvm.compiler.hotspot.CompilationWatchDog.elapsed:J
invokestatic org.graalvm.compiler.hotspot.CompilationWatchDog.secs:(J)D
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
invokevirtual org.graalvm.compiler.hotspot.CompilationWatchDog.trace:(Ljava/lang/String;[Ljava/lang/Object;)V
16: StackMap locals:
StackMap stack:
aload 0
dup
getfield org.graalvm.compiler.hotspot.CompilationWatchDog.elapsed:J
ldc 1000
ladd
putfield org.graalvm.compiler.hotspot.CompilationWatchDog.elapsed:J
17: goto 56
18: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.graalvm.compiler.hotspot.CompilationWatchDog.reset:()V
19: goto 56
20: StackMap locals:
StackMap stack:
aload 1
aload 0
getfield org.graalvm.compiler.hotspot.CompilationWatchDog.lastWatched:Ljdk/vm/ci/meta/ResolvedJavaMethod;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 54
21: aload 0
getfield org.graalvm.compiler.hotspot.CompilationWatchDog.elapsed:J
aload 0
getfield org.graalvm.compiler.hotspot.CompilationWatchDog.startDelayMilliseconds:J
aload 0
getfield org.graalvm.compiler.hotspot.CompilationWatchDog.traceIntervals:I
i2l
aload 0
getfield org.graalvm.compiler.hotspot.CompilationWatchDog.stackTraceIntervalMilliseconds:J
lmul
ladd
lcmp
iflt 51
22: aload 0
ldc "took a stack trace"
iconst_0
anewarray java.lang.Object
invokevirtual org.graalvm.compiler.hotspot.CompilationWatchDog.trace:(Ljava/lang/String;[Ljava/lang/Object;)V
23: aload 0
aload 0
getfield org.graalvm.compiler.hotspot.CompilationWatchDog.compilerThread:Ljava/lang/Thread;
invokevirtual java.lang.Thread.getStackTrace:()[Ljava/lang/StackTraceElement;
invokevirtual org.graalvm.compiler.hotspot.CompilationWatchDog.recordStackTrace:([Ljava/lang/StackTraceElement;)Z
istore 2
start local 2 24: iload 2
ifne 27
25: aload 0
ldc "%d identical stack traces in a row"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield org.graalvm.compiler.hotspot.CompilationWatchDog.numberOfIdenticalStackTraces:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokevirtual org.graalvm.compiler.hotspot.CompilationWatchDog.trace:(Ljava/lang/String;[Ljava/lang/Object;)V
26: aload 0
iconst_0
putfield org.graalvm.compiler.hotspot.CompilationWatchDog.numberOfIdenticalStackTraces:I
27: StackMap locals: int
StackMap stack:
aload 0
dup
getfield org.graalvm.compiler.hotspot.CompilationWatchDog.numberOfIdenticalStackTraces:I
iconst_1
iadd
putfield org.graalvm.compiler.hotspot.CompilationWatchDog.numberOfIdenticalStackTraces:I
28: aload 0
getfield org.graalvm.compiler.hotspot.CompilationWatchDog.numberOfIdenticalStackTraces:I
aload 0
getfield org.graalvm.compiler.hotspot.CompilationWatchDog.nonFatalIdenticalCompilationSnapshots:I
if_icmple 39
29: ldc Lorg/graalvm/compiler/hotspot/CompilationWatchDog;
dup
astore 3
monitorenter
30: ldc "======================= WATCH DOG THREAD =======================%n%s took %d identical stack traces, which indicates a stuck compilation (id=%d) of %s%n%sExiting VM%n"
iconst_5
anewarray java.lang.Object
dup
iconst_0
31: aload 0
aastore
dup
iconst_1
32: aload 0
getfield org.graalvm.compiler.hotspot.CompilationWatchDog.numberOfIdenticalStackTraces:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_2
aload 0
getfield org.graalvm.compiler.hotspot.CompilationWatchDog.currentId:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_3
aload 0
getfield org.graalvm.compiler.hotspot.CompilationWatchDog.currentMethod:Ljdk/vm/ci/meta/ResolvedJavaMethod;
invokestatic org.graalvm.compiler.hotspot.HotSpotGraalCompiler.fmt:(Ljava/lang/Object;)Ljava/util/Formattable;
aastore
dup
iconst_4
aload 0
getfield org.graalvm.compiler.hotspot.CompilationWatchDog.lastStackTrace:[Ljava/lang/StackTraceElement;
invokestatic org.graalvm.compiler.hotspot.HotSpotGraalCompiler.fmt:(Ljava/lang/Object;)Ljava/util/Formattable;
aastore
33: invokestatic org.graalvm.compiler.debug.TTY.printf:(Ljava/lang/String;[Ljava/lang/Object;)V
34: iconst_m1
invokestatic org.graalvm.compiler.hotspot.HotSpotGraalServices.exit:(I)V
35: aload 3
monitorexit
36: goto 49
StackMap locals: org.graalvm.compiler.hotspot.CompilationWatchDog jdk.vm.ci.meta.ResolvedJavaMethod int java.lang.Class
StackMap stack: java.lang.Throwable
37: aload 3
monitorexit
38: athrow
39: StackMap locals:
StackMap stack:
iload 2
ifeq 49
40: ldc Lorg/graalvm/compiler/hotspot/CompilationWatchDog;
dup
astore 3
monitorenter
41: ldc "======================= WATCH DOG THREAD =======================%n%s detected long running compilation (id=%d) of %s [%.2f seconds]%n%s"
iconst_5
anewarray java.lang.Object
dup
iconst_0
42: aload 0
aastore
dup
iconst_1
aload 0
getfield org.graalvm.compiler.hotspot.CompilationWatchDog.currentId:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_2
aload 0
getfield org.graalvm.compiler.hotspot.CompilationWatchDog.currentMethod:Ljdk/vm/ci/meta/ResolvedJavaMethod;
invokestatic org.graalvm.compiler.hotspot.HotSpotGraalCompiler.fmt:(Ljava/lang/Object;)Ljava/util/Formattable;
aastore
dup
iconst_3
43: aload 0
getfield org.graalvm.compiler.hotspot.CompilationWatchDog.elapsed:J
invokestatic org.graalvm.compiler.hotspot.CompilationWatchDog.secs:(J)D
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
dup
iconst_4
aload 0
getfield org.graalvm.compiler.hotspot.CompilationWatchDog.lastStackTrace:[Ljava/lang/StackTraceElement;
invokestatic org.graalvm.compiler.hotspot.HotSpotGraalCompiler.fmt:(Ljava/lang/Object;)Ljava/util/Formattable;
aastore
44: invokestatic org.graalvm.compiler.debug.TTY.printf:(Ljava/lang/String;[Ljava/lang/Object;)V
45: aload 3
monitorexit
46: goto 49
StackMap locals: org.graalvm.compiler.hotspot.CompilationWatchDog jdk.vm.ci.meta.ResolvedJavaMethod int java.lang.Class
StackMap stack: java.lang.Throwable
47: aload 3
monitorexit
48: athrow
49: StackMap locals:
StackMap stack:
aload 0
dup
getfield org.graalvm.compiler.hotspot.CompilationWatchDog.traceIntervals:I
iconst_1
iadd
putfield org.graalvm.compiler.hotspot.CompilationWatchDog.traceIntervals:I
end local 2 50: goto 52
51: StackMap locals:
StackMap stack:
aload 0
ldc "watching with stack traces [%.2f seconds]"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield org.graalvm.compiler.hotspot.CompilationWatchDog.elapsed:J
invokestatic org.graalvm.compiler.hotspot.CompilationWatchDog.secs:(J)D
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
invokevirtual org.graalvm.compiler.hotspot.CompilationWatchDog.trace:(Ljava/lang/String;[Ljava/lang/Object;)V
52: StackMap locals:
StackMap stack:
aload 0
dup
getfield org.graalvm.compiler.hotspot.CompilationWatchDog.elapsed:J
ldc 1000
ladd
putfield org.graalvm.compiler.hotspot.CompilationWatchDog.elapsed:J
53: goto 56
54: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.graalvm.compiler.hotspot.CompilationWatchDog.reset:()V
55: goto 56
56: StackMap locals:
StackMap stack:
ldc 1000
invokestatic java.lang.Thread.sleep:(J)V
57: goto 1
StackMap locals:
StackMap stack: java.lang.InterruptedException
58: pop
end local 1 59: goto 1
60: StackMap locals: org.graalvm.compiler.hotspot.CompilationWatchDog
StackMap stack: java.lang.VirtualMachineError
pop
goto 63
61: StackMap locals:
StackMap stack: java.lang.Throwable
astore 1
start local 1 62: new java.lang.InternalError
dup
ldc "%s encountered an exception%n%s%n"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 0
aastore
dup
iconst_1
aload 1
invokestatic org.graalvm.compiler.hotspot.HotSpotGraalCompiler.fmt:(Ljava/lang/Object;)Ljava/util/Formattable;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
aload 1
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 63: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 64 0 this Lorg/graalvm/compiler/hotspot/CompilationWatchDog;
2 59 1 currentlyCompiling Ljdk/vm/ci/meta/ResolvedJavaMethod;
24 50 2 newStackTrace Z
62 63 1 t Ljava/lang/Throwable;
Exception table:
from to target type
30 36 37 any
37 38 37 any
41 46 47 any
47 48 47 any
56 57 58 Class java.lang.InterruptedException
0 60 60 Class java.lang.VirtualMachineError
0 60 61 Class java.lang.Throwable
static org.graalvm.compiler.hotspot.CompilationWatchDog watch(jdk.vm.ci.meta.ResolvedJavaMethod, int, org.graalvm.compiler.options.OptionValues);
descriptor: (Ljdk/vm/ci/meta/ResolvedJavaMethod;ILorg/graalvm/compiler/options/OptionValues;)Lorg/graalvm/compiler/hotspot/CompilationWatchDog;
flags: (0x0008) ACC_STATIC
Code:
stack=8, locals=11, args_size=3
start local 0 start local 1 start local 2 0: getstatic org.graalvm.compiler.hotspot.CompilationWatchDog$Options.CompilationWatchDogStartDelay:Lorg/graalvm/compiler/options/OptionKey;
aload 2
invokevirtual org.graalvm.compiler.options.OptionKey.getValue:(Lorg/graalvm/compiler/options/OptionValues;)Ljava/lang/Object;
checkcast java.lang.Double
invokevirtual java.lang.Double.doubleValue:()D
invokestatic org.graalvm.compiler.hotspot.CompilationWatchDog.ms:(D)J
lstore 3
start local 3 1: lload 3
l2d
dconst_0
dcmpl
ifle 16
2: getstatic org.graalvm.compiler.hotspot.CompilationWatchDog.WATCH_DOGS:Ljava/lang/ThreadLocal;
invokevirtual java.lang.ThreadLocal.get:()Ljava/lang/Object;
checkcast org.graalvm.compiler.hotspot.CompilationWatchDog
astore 5
start local 5 3: aload 5
ifnonnull 14
4: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
astore 6
start local 6 5: getstatic org.graalvm.compiler.hotspot.CompilationWatchDog$Options.CompilationWatchDogStackTraceInterval:Lorg/graalvm/compiler/options/OptionKey;
aload 2
invokevirtual org.graalvm.compiler.options.OptionKey.getValue:(Lorg/graalvm/compiler/options/OptionValues;)Ljava/lang/Object;
checkcast java.lang.Double
invokevirtual java.lang.Double.doubleValue:()D
invokestatic org.graalvm.compiler.hotspot.CompilationWatchDog.ms:(D)J
lstore 7
start local 7 6: getstatic org.graalvm.compiler.hotspot.CompilationWatchDog$Options.NonFatalIdenticalCompilationSnapshots:Lorg/graalvm/compiler/options/OptionKey;
aload 2
invokevirtual org.graalvm.compiler.options.OptionKey.getValue:(Lorg/graalvm/compiler/options/OptionValues;)Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
istore 9
start local 9 7: new org.graalvm.compiler.hotspot.CompilationWatchDog
dup
aload 6
lload 3
lload 7
iload 9
invokespecial org.graalvm.compiler.hotspot.CompilationWatchDog.<init>:(Ljava/lang/Thread;JJI)V
astore 5
8: getstatic org.graalvm.compiler.hotspot.CompilationWatchDog.WATCH_DOGS:Ljava/lang/ThreadLocal;
aload 5
invokevirtual java.lang.ThreadLocal.set:(Ljava/lang/Object;)V
9: new org.graalvm.compiler.core.GraalServiceThread
dup
aload 5
invokespecial org.graalvm.compiler.core.GraalServiceThread.<init>:(Ljava/lang/Runnable;)V
astore 10
start local 10 10: aload 10
new java.lang.StringBuilder
dup
aload 10
invokevirtual org.graalvm.compiler.core.GraalServiceThread.getId:()J
invokestatic java.lang.String.valueOf:(J)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 5
invokevirtual org.graalvm.compiler.hotspot.CompilationWatchDog.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.graalvm.compiler.core.GraalServiceThread.setName:(Ljava/lang/String;)V
11: aload 10
bipush 10
invokevirtual org.graalvm.compiler.core.GraalServiceThread.setPriority:(I)V
12: aload 10
iconst_1
invokevirtual org.graalvm.compiler.core.GraalServiceThread.setDaemon:(Z)V
13: aload 10
invokevirtual org.graalvm.compiler.core.GraalServiceThread.start:()V
end local 10 end local 9 end local 7 end local 6 14: StackMap locals: long org.graalvm.compiler.hotspot.CompilationWatchDog
StackMap stack:
aload 5
aload 0
iload 1
invokevirtual org.graalvm.compiler.hotspot.CompilationWatchDog.startCompilation:(Ljdk/vm/ci/meta/ResolvedJavaMethod;I)V
15: aload 5
areturn
end local 5 16: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 method Ljdk/vm/ci/meta/ResolvedJavaMethod;
0 17 1 id I
0 17 2 options Lorg/graalvm/compiler/options/OptionValues;
1 17 3 startDelayMilliseconds J
3 16 5 watchDog Lorg/graalvm/compiler/hotspot/CompilationWatchDog;
5 14 6 currentThread Ljava/lang/Thread;
6 14 7 stackTraceIntervalMilliseconds J
7 14 9 nonFatalIdenticalCompilationSnapshots I
10 14 10 thread Lorg/graalvm/compiler/core/GraalServiceThread;
MethodParameters:
Name Flags
method
id
options
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.graalvm.compiler.hotspot.CompilationWatchDog.stopCompilation:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/compiler/hotspot/CompilationWatchDog;
static int[] $SWITCH_TABLE$org$graalvm$compiler$hotspot$CompilationWatchDog$WatchDogState();
descriptor: ()[I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: getstatic org.graalvm.compiler.hotspot.CompilationWatchDog.$SWITCH_TABLE$org$graalvm$compiler$hotspot$CompilationWatchDog$WatchDogState:[I
dup
ifnull 1
areturn
StackMap locals:
StackMap stack: int[]
1: pop
invokestatic org.graalvm.compiler.hotspot.CompilationWatchDog$WatchDogState.values:()[Lorg/graalvm/compiler/hotspot/CompilationWatchDog$WatchDogState;
arraylength
newarray 10
astore 0
2: aload 0
getstatic org.graalvm.compiler.hotspot.CompilationWatchDog$WatchDogState.SLEEPING:Lorg/graalvm/compiler/hotspot/CompilationWatchDog$WatchDogState;
invokevirtual org.graalvm.compiler.hotspot.CompilationWatchDog$WatchDogState.ordinal:()I
iconst_1
iastore
3: goto 5
StackMap locals: int[]
StackMap stack: java.lang.NoSuchFieldError
4: pop
StackMap locals:
StackMap stack:
5: aload 0
getstatic org.graalvm.compiler.hotspot.CompilationWatchDog$WatchDogState.WATCHING_WITHOUT_STACK_INSPECTION:Lorg/graalvm/compiler/hotspot/CompilationWatchDog$WatchDogState;
invokevirtual org.graalvm.compiler.hotspot.CompilationWatchDog$WatchDogState.ordinal:()I
iconst_2
iastore
6: goto 8
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
7: pop
StackMap locals:
StackMap stack:
8: aload 0
getstatic org.graalvm.compiler.hotspot.CompilationWatchDog$WatchDogState.WATCHING_WITH_STACK_INSPECTION:Lorg/graalvm/compiler/hotspot/CompilationWatchDog$WatchDogState;
invokevirtual org.graalvm.compiler.hotspot.CompilationWatchDog$WatchDogState.ordinal:()I
iconst_3
iastore
9: goto 11
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
10: pop
StackMap locals:
StackMap stack:
11: aload 0
dup
putstatic org.graalvm.compiler.hotspot.CompilationWatchDog.$SWITCH_TABLE$org$graalvm$compiler$hotspot$CompilationWatchDog$WatchDogState:[I
areturn
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
2 3 4 Class java.lang.NoSuchFieldError
5 6 7 Class java.lang.NoSuchFieldError
8 9 10 Class java.lang.NoSuchFieldError
}
SourceFile: "CompilationWatchDog.java"
NestMembers:
org.graalvm.compiler.hotspot.CompilationWatchDog$Options org.graalvm.compiler.hotspot.CompilationWatchDog$WatchDogState
InnerClasses:
public Options = org.graalvm.compiler.hotspot.CompilationWatchDog$Options of org.graalvm.compiler.hotspot.CompilationWatchDog
private final WatchDogState = org.graalvm.compiler.hotspot.CompilationWatchDog$WatchDogState of org.graalvm.compiler.hotspot.CompilationWatchDog