public class sun.jvm.hotspot.utilities.StreamMonitor implements java.lang.Runnable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.jvm.hotspot.utilities.StreamMonitor
super_class: java.lang.Object
{
private java.io.BufferedReader input;
descriptor: Ljava/io/BufferedReader;
flags: (0x0002) ACC_PRIVATE
private boolean printStreamContents;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private java.lang.String waitString;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private boolean waitStringSeen;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private java.util.List triggers;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
private java.util.List ;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
private java.lang.String prefixString;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private boolean printContents;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private java.lang.StringBuffer captureBuffer;
descriptor: Ljava/lang/StringBuffer;
flags: (0x0002) ACC_PRIVATE
public void <init>(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aconst_null
iconst_0
invokespecial sun.jvm.hotspot.utilities.StreamMonitor.<init>:(Ljava/io/InputStream;Ljava/lang/String;Z)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/jvm/hotspot/utilities/StreamMonitor;
0 2 1 istr Ljava/io/InputStream;
MethodParameters:
Name Flags
istr
public void <init>(java.io.InputStream, java.lang.String, boolean);
descriptor: (Ljava/io/InputStream;Ljava/lang/String;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
putfield sun.jvm.hotspot.utilities.StreamMonitor.triggers:Ljava/util/List;
2: aload 0
new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
putfield sun.jvm.hotspot.utilities.StreamMonitor.triggersSeen:Ljava/util/List;
3: aload 0
new java.io.BufferedReader
dup
new java.io.InputStreamReader
dup
aload 1
invokespecial java.io.InputStreamReader.<init>:(Ljava/io/InputStream;)V
invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
putfield sun.jvm.hotspot.utilities.StreamMonitor.input:Ljava/io/BufferedReader;
4: aload 0
aload 2
putfield sun.jvm.hotspot.utilities.StreamMonitor.prefixString:Ljava/lang/String;
5: aload 0
iload 3
putfield sun.jvm.hotspot.utilities.StreamMonitor.printContents:Z
6: new java.lang.Thread
dup
aload 0
invokespecial java.lang.Thread.<init>:(Ljava/lang/Runnable;)V
astore 4
start local 4 7: aload 4
iconst_1
invokevirtual java.lang.Thread.setDaemon:(Z)V
8: aload 4
invokevirtual java.lang.Thread.start:()V
9: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/jvm/hotspot/utilities/StreamMonitor;
0 10 1 istr Ljava/io/InputStream;
0 10 2 prefixString Ljava/lang/String;
0 10 3 printContents Z
7 10 4 thr Ljava/lang/Thread;
MethodParameters:
Name Flags
istr
prefixString
printContents
public boolean addTrigger(java.lang.String, int);
descriptor: (Ljava/lang/String;I)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iconst_1
anewarray java.lang.String
dup
iconst_0
aload 1
aastore
iload 2
invokevirtual sun.jvm.hotspot.utilities.StreamMonitor.addTrigger:([Ljava/lang/String;I)Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/jvm/hotspot/utilities/StreamMonitor;
0 1 1 str Ljava/lang/String;
0 1 2 value I
MethodParameters:
Name Flags
str
value
public boolean addTrigger(java.lang.String[], int);
descriptor: ([Ljava/lang/String;I)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield sun.jvm.hotspot.utilities.StreamMonitor.triggers:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
start local 3 1: goto 5
2: StackMap locals: java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast sun.jvm.hotspot.utilities.StreamMonitor$Trigger
astore 4
start local 4 3: aload 4
aload 1
invokevirtual sun.jvm.hotspot.utilities.StreamMonitor$Trigger.equals:([Ljava/lang/String;)Z
ifeq 5
4: iconst_0
ireturn
end local 4 5: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
end local 3 6: new sun.jvm.hotspot.utilities.StreamMonitor$Trigger
dup
aload 0
aload 1
iload 2
invokespecial sun.jvm.hotspot.utilities.StreamMonitor$Trigger.<init>:(Lsun/jvm/hotspot/utilities/StreamMonitor;[Ljava/lang/String;I)V
astore 3
start local 3 7: aload 0
getfield sun.jvm.hotspot.utilities.StreamMonitor.triggers:Ljava/util/List;
aload 3
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/jvm/hotspot/utilities/StreamMonitor;
0 8 1 strs [Ljava/lang/String;
0 8 2 value I
1 6 3 iter Ljava/util/Iterator;
3 5 4 trigger Lsun/jvm/hotspot/utilities/StreamMonitor$Trigger;
7 8 3 trigger Lsun/jvm/hotspot/utilities/StreamMonitor$Trigger;
MethodParameters:
Name Flags
strs
value
public boolean removeTrigger(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_1
anewarray java.lang.String
dup
iconst_0
aload 1
aastore
invokevirtual sun.jvm.hotspot.utilities.StreamMonitor.removeTrigger:([Ljava/lang/String;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/jvm/hotspot/utilities/StreamMonitor;
0 1 1 str Ljava/lang/String;
MethodParameters:
Name Flags
str
public boolean removeTrigger(java.lang.String[]);
descriptor: ([Ljava/lang/String;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.jvm.hotspot.utilities.StreamMonitor.triggers:Ljava/util/List;
invokeinterface java.util.List.listIterator:()Ljava/util/ListIterator;
astore 2
start local 2 1: goto 6
2: StackMap locals: java.util.ListIterator
StackMap stack:
aload 2
invokeinterface java.util.ListIterator.next:()Ljava/lang/Object;
checkcast sun.jvm.hotspot.utilities.StreamMonitor$Trigger
astore 3
start local 3 3: aload 3
aload 1
invokevirtual sun.jvm.hotspot.utilities.StreamMonitor$Trigger.equals:([Ljava/lang/String;)Z
ifeq 6
4: aload 2
invokeinterface java.util.ListIterator.remove:()V
5: iconst_1
ireturn
end local 3 6: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.ListIterator.hasNext:()Z
ifne 2
end local 2 7: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/jvm/hotspot/utilities/StreamMonitor;
0 8 1 strs [Ljava/lang/String;
1 7 2 iter Ljava/util/ListIterator;
3 6 3 trigger Lsun/jvm/hotspot/utilities/StreamMonitor$Trigger;
MethodParameters:
Name Flags
strs
public synchronized java.util.List ();
descriptor: ()Ljava/util/List;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.jvm.hotspot.utilities.StreamMonitor.triggersSeen:Ljava/util/List;
astore 1
start local 1 1: aload 0
new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
putfield sun.jvm.hotspot.utilities.StreamMonitor.triggersSeen:Ljava/util/List;
2: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/jvm/hotspot/utilities/StreamMonitor;
1 3 1 tmpList Ljava/util/List;
public synchronized boolean waitFor(java.lang.String, long);
descriptor: (Ljava/lang/String;J)Z
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
putfield sun.jvm.hotspot.utilities.StreamMonitor.waitString:Ljava/lang/String;
1: aload 0
iconst_0
putfield sun.jvm.hotspot.utilities.StreamMonitor.waitStringSeen:Z
2: aload 0
lload 2
invokevirtual java.lang.Object.wait:(J)V
3: goto 5
4: StackMap locals:
StackMap stack: java.lang.InterruptedException
pop
5: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield sun.jvm.hotspot.utilities.StreamMonitor.waitString:Ljava/lang/String;
6: aload 0
getfield sun.jvm.hotspot.utilities.StreamMonitor.waitStringSeen:Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/jvm/hotspot/utilities/StreamMonitor;
0 7 1 str Ljava/lang/String;
0 7 2 millis J
Exception table:
from to target type
2 3 4 Class java.lang.InterruptedException
MethodParameters:
Name Flags
str
millis
public synchronized void startCapture();
descriptor: ()V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
new java.lang.StringBuffer
dup
invokespecial java.lang.StringBuffer.<init>:()V
putfield sun.jvm.hotspot.utilities.StreamMonitor.captureBuffer:Ljava/lang/StringBuffer;
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/jvm/hotspot/utilities/StreamMonitor;
public synchronized java.lang.String stopCapture();
descriptor: ()Ljava/lang/String;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.jvm.hotspot.utilities.StreamMonitor.captureBuffer:Ljava/lang/StringBuffer;
invokevirtual java.lang.StringBuffer.toString:()Ljava/lang/String;
astore 1
start local 1 1: aload 0
aconst_null
putfield sun.jvm.hotspot.utilities.StreamMonitor.captureBuffer:Ljava/lang/StringBuffer;
2: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/jvm/hotspot/utilities/StreamMonitor;
1 3 1 ret Ljava/lang/String;
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=1
start local 0 0: sipush 10240
newarray 8
pop
1: iconst_1
istore 1
start local 1 2: StackMap locals: int
StackMap stack:
aload 0
getfield sun.jvm.hotspot.utilities.StreamMonitor.input:Ljava/io/BufferedReader;
invokevirtual java.io.BufferedReader.readLine:()Ljava/lang/String;
astore 2
start local 2 3: aload 2
ifnonnull 6
4: iconst_0
istore 1
5: goto 26
6: StackMap locals: java.lang.String
StackMap stack:
aload 0
getfield sun.jvm.hotspot.utilities.StreamMonitor.printContents:Z
ifeq 8
7: getstatic java.lang.System.err:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
aload 0
getfield sun.jvm.hotspot.utilities.StreamMonitor.prefixString:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)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 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
8: StackMap locals:
StackMap stack:
aload 0
dup
astore 3
monitorenter
9: aload 0
getfield sun.jvm.hotspot.utilities.StreamMonitor.captureBuffer:Ljava/lang/StringBuffer;
ifnull 12
10: aload 0
getfield sun.jvm.hotspot.utilities.StreamMonitor.captureBuffer:Ljava/lang/StringBuffer;
aload 2
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
11: aload 0
getfield sun.jvm.hotspot.utilities.StreamMonitor.captureBuffer:Ljava/lang/StringBuffer;
ldc "\n"
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
12: StackMap locals: sun.jvm.hotspot.utilities.StreamMonitor
StackMap stack:
aload 0
getfield sun.jvm.hotspot.utilities.StreamMonitor.waitString:Ljava/lang/String;
ifnull 16
13: aload 2
aload 0
getfield sun.jvm.hotspot.utilities.StreamMonitor.waitString:Ljava/lang/String;
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
iconst_m1
if_icmpeq 16
14: aload 0
iconst_1
putfield sun.jvm.hotspot.utilities.StreamMonitor.waitStringSeen:Z
15: aload 0
invokevirtual java.lang.Object.notifyAll:()V
16: StackMap locals:
StackMap stack:
aload 0
getfield sun.jvm.hotspot.utilities.StreamMonitor.triggers:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
start local 4 17: goto 21
18: StackMap locals: java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast sun.jvm.hotspot.utilities.StreamMonitor$Trigger
astore 5
start local 5 19: aload 5
aload 2
invokevirtual sun.jvm.hotspot.utilities.StreamMonitor$Trigger.matches:(Ljava/lang/String;)Z
ifeq 21
20: aload 0
getfield sun.jvm.hotspot.utilities.StreamMonitor.triggersSeen:Ljava/util/List;
new java.lang.Integer
dup
aload 5
getfield sun.jvm.hotspot.utilities.StreamMonitor$Trigger.triggerVal:I
invokespecial java.lang.Integer.<init>:(I)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 5 21: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 18
end local 4 22: aload 3
monitorexit
23: goto 26
StackMap locals: sun.jvm.hotspot.utilities.StreamMonitor int java.lang.String sun.jvm.hotspot.utilities.StreamMonitor
StackMap stack: java.lang.Throwable
24: aload 3
monitorexit
25: athrow
end local 2 26: StackMap locals:
StackMap stack:
iload 1
ifne 2
27: goto 29
28: StackMap locals:
StackMap stack: java.io.IOException
pop
29: StackMap locals:
StackMap stack:
getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "StreamMonitor "
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
30: aload 0
getfield sun.jvm.hotspot.utilities.StreamMonitor.prefixString:Ljava/lang/String;
ifnull 32
31: getstatic java.lang.System.err:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "\""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield sun.jvm.hotspot.utilities.StreamMonitor.prefixString: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;
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
32: StackMap locals:
StackMap stack:
getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "exiting"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
33: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 34 0 this Lsun/jvm/hotspot/utilities/StreamMonitor;
2 34 1 shouldContinue Z
3 26 2 str Ljava/lang/String;
17 22 4 iter Ljava/util/Iterator;
19 21 5 trigger Lsun/jvm/hotspot/utilities/StreamMonitor$Trigger;
Exception table:
from to target type
9 23 24 any
24 25 24 any
2 27 28 Class java.io.IOException
}
SourceFile: "StreamMonitor.java"
NestMembers:
sun.jvm.hotspot.utilities.StreamMonitor$Trigger
InnerClasses:
Trigger = sun.jvm.hotspot.utilities.StreamMonitor$Trigger of sun.jvm.hotspot.utilities.StreamMonitor