public class sun.tools.attach.AixVirtualMachine extends sun.tools.attach.HotSpotVirtualMachine
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.tools.attach.AixVirtualMachine
super_class: sun.tools.attach.HotSpotVirtualMachine
{
private static final java.lang.String tmpdir;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "/tmp"
java.lang.String path;
descriptor: Ljava/lang/String;
flags: (0x0000)
private static final java.lang.String PROTOCOL_VERSION;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "1"
private static final int ATTACH_ERROR_BADVERSION;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 101
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 Lsun/tools/attach/AixVirtualMachine;
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 sun.tools.attach.AixVirtualMachine.$assertionsDisabled:Z
3: ldc "attach"
invokestatic java.lang.System.loadLibrary:(Ljava/lang/String;)V
4: return
LocalVariableTable:
Start End Slot Name Signature
void <init>(com.sun.tools.attach.spi.AttachProvider, java.lang.String);
descriptor: (Lcom/sun/tools/attach/spi/AttachProvider;Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=4, locals=10, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokespecial sun.tools.attach.HotSpotVirtualMachine.<init>:(Lcom/sun/tools/attach/spi/AttachProvider;Ljava/lang/String;)V
1: aload 2
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
istore 3
start local 3 2: goto 5
end local 3 StackMap locals: sun.tools.attach.AixVirtualMachine com.sun.tools.attach.spi.AttachProvider java.lang.String
StackMap stack: java.lang.NumberFormatException
3: pop
4: new com.sun.tools.attach.AttachNotSupportedException
dup
ldc "Invalid process identifier"
invokespecial com.sun.tools.attach.AttachNotSupportedException.<init>:(Ljava/lang/String;)V
athrow
start local 3 5: StackMap locals: int
StackMap stack:
aload 0
aload 0
iload 3
invokevirtual sun.tools.attach.AixVirtualMachine.findSocketFile:(I)Ljava/lang/String;
putfield sun.tools.attach.AixVirtualMachine.path:Ljava/lang/String;
6: aload 0
getfield sun.tools.attach.AixVirtualMachine.path:Ljava/lang/String;
ifnonnull 26
7: aload 0
iload 3
invokevirtual sun.tools.attach.AixVirtualMachine.createAttachFile:(I)Ljava/io/File;
astore 4
start local 4 8: iload 3
invokestatic sun.tools.attach.AixVirtualMachine.sendQuitTo:(I)V
9: iconst_0
istore 5
start local 5 10: ldc 200
lstore 6
start local 6 11: aload 0
invokevirtual sun.tools.attach.AixVirtualMachine.attachTimeout:()J
lload 6
ldiv
l2i
istore 8
start local 8 12: StackMap locals: sun.tools.attach.AixVirtualMachine com.sun.tools.attach.spi.AttachProvider java.lang.String int java.io.File int long int
StackMap stack:
lload 6
invokestatic java.lang.Thread.sleep:(J)V
13: goto 15
StackMap locals:
StackMap stack: java.lang.InterruptedException
14: pop
15: StackMap locals:
StackMap stack:
aload 0
aload 0
iload 3
invokevirtual sun.tools.attach.AixVirtualMachine.findSocketFile:(I)Ljava/lang/String;
putfield sun.tools.attach.AixVirtualMachine.path:Ljava/lang/String;
16: iinc 5 1
17: iload 5
iload 8
if_icmpgt 18
aload 0
getfield sun.tools.attach.AixVirtualMachine.path:Ljava/lang/String;
ifnull 12
18: StackMap locals:
StackMap stack:
aload 0
getfield sun.tools.attach.AixVirtualMachine.path:Ljava/lang/String;
ifnonnull 25
19: new com.sun.tools.attach.AttachNotSupportedException
dup
20: ldc "Unable to open socket file: target process not responding or HotSpot VM not loaded"
21: invokespecial com.sun.tools.attach.AttachNotSupportedException.<init>:(Ljava/lang/String;)V
athrow
end local 8 end local 6 end local 5 22: StackMap locals: sun.tools.attach.AixVirtualMachine com.sun.tools.attach.spi.AttachProvider java.lang.String int java.io.File
StackMap stack: java.lang.Throwable
astore 9
23: aload 4
invokevirtual java.io.File.delete:()Z
pop
24: aload 9
athrow
25: StackMap locals:
StackMap stack:
aload 4
invokevirtual java.io.File.delete:()Z
pop
end local 4 26: StackMap locals:
StackMap stack:
aload 0
getfield sun.tools.attach.AixVirtualMachine.path:Ljava/lang/String;
invokestatic sun.tools.attach.AixVirtualMachine.checkPermissions:(Ljava/lang/String;)V
27: invokestatic sun.tools.attach.AixVirtualMachine.socket:()I
istore 4
start local 4 28: iload 4
aload 0
getfield sun.tools.attach.AixVirtualMachine.path:Ljava/lang/String;
invokestatic sun.tools.attach.AixVirtualMachine.connect:(ILjava/lang/String;)V
29: goto 33
StackMap locals: sun.tools.attach.AixVirtualMachine com.sun.tools.attach.spi.AttachProvider java.lang.String int int
StackMap stack: java.lang.Throwable
30: astore 5
31: iload 4
invokestatic sun.tools.attach.AixVirtualMachine.close:(I)V
32: aload 5
athrow
33: StackMap locals:
StackMap stack:
iload 4
invokestatic sun.tools.attach.AixVirtualMachine.close:(I)V
34: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 35 0 this Lsun/tools/attach/AixVirtualMachine;
0 35 1 provider Lcom/sun/tools/attach/spi/AttachProvider;
0 35 2 vmid Ljava/lang/String;
2 3 3 pid I
5 35 3 pid I
8 26 4 f Ljava/io/File;
10 22 5 i I
11 22 6 delay J
12 22 8 retries I
28 35 4 s I
Exception table:
from to target type
1 2 3 Class java.lang.NumberFormatException
12 13 14 Class java.lang.InterruptedException
8 22 22 any
28 30 30 any
Exceptions:
throws com.sun.tools.attach.AttachNotSupportedException, java.io.IOException
MethodParameters:
Name Flags
provider
vmid
public void detach();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
dup
astore 1
monitorenter
1: aload 0
getfield sun.tools.attach.AixVirtualMachine.path:Ljava/lang/String;
ifnull 3
2: aload 0
aconst_null
putfield sun.tools.attach.AixVirtualMachine.path:Ljava/lang/String;
3: StackMap locals: sun.tools.attach.AixVirtualMachine
StackMap stack:
aload 1
monitorexit
4: goto 7
StackMap locals:
StackMap stack: java.lang.Throwable
5: aload 1
monitorexit
6: athrow
7: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/tools/attach/AixVirtualMachine;
Exception table:
from to target type
1 4 5 any
5 6 5 any
Exceptions:
throws java.io.IOException
java.io.InputStream execute(java.lang.String, java.lang.Object[]);
descriptor: (Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/InputStream;
flags: (0x0080) ACC_VARARGS
Code:
stack=4, locals=9, args_size=3
start local 0 start local 1 start local 2 0: getstatic sun.tools.attach.AixVirtualMachine.$assertionsDisabled:Z
ifne 1
aload 2
arraylength
iconst_3
if_icmple 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
dup
astore 4
monitorenter
2: aload 0
getfield sun.tools.attach.AixVirtualMachine.path:Ljava/lang/String;
ifnonnull 4
3: new java.io.IOException
dup
ldc "Detached from target VM"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: sun.tools.attach.AixVirtualMachine java.lang.String java.lang.Object[] top sun.tools.attach.AixVirtualMachine
StackMap stack:
aload 0
getfield sun.tools.attach.AixVirtualMachine.path:Ljava/lang/String;
astore 3
start local 3 5: aload 4
monitorexit
6: goto 9
end local 3 StackMap locals:
StackMap stack: java.lang.Throwable
7: aload 4
monitorexit
8: athrow
start local 3 9: StackMap locals: sun.tools.attach.AixVirtualMachine java.lang.String java.lang.Object[] java.lang.String
StackMap stack:
invokestatic sun.tools.attach.AixVirtualMachine.socket:()I
istore 4
start local 4 10: iload 4
aload 3
invokestatic sun.tools.attach.AixVirtualMachine.connect:(ILjava/lang/String;)V
11: goto 15
StackMap locals: sun.tools.attach.AixVirtualMachine java.lang.String java.lang.Object[] java.lang.String int
StackMap stack: java.io.IOException
12: astore 5
start local 5 13: iload 4
invokestatic sun.tools.attach.AixVirtualMachine.close:(I)V
14: aload 5
athrow
end local 5 15: StackMap locals:
StackMap stack:
aconst_null
astore 5
start local 5 16: aload 0
iload 4
ldc "1"
invokevirtual sun.tools.attach.AixVirtualMachine.writeString:(ILjava/lang/String;)V
17: aload 0
iload 4
aload 1
invokevirtual sun.tools.attach.AixVirtualMachine.writeString:(ILjava/lang/String;)V
18: iconst_0
istore 6
start local 6 19: goto 25
20: StackMap locals: java.io.IOException int
StackMap stack:
iload 6
aload 2
arraylength
if_icmpge 23
aload 2
iload 6
aaload
ifnull 23
21: aload 0
iload 4
aload 2
iload 6
aaload
checkcast java.lang.String
invokevirtual sun.tools.attach.AixVirtualMachine.writeString:(ILjava/lang/String;)V
22: goto 24
23: StackMap locals:
StackMap stack:
aload 0
iload 4
ldc ""
invokevirtual sun.tools.attach.AixVirtualMachine.writeString:(ILjava/lang/String;)V
24: StackMap locals:
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
25: iload 6
iconst_3
if_icmplt 20
end local 6 26: goto 29
StackMap locals: sun.tools.attach.AixVirtualMachine java.lang.String java.lang.Object[] java.lang.String int java.io.IOException
StackMap stack: java.io.IOException
27: astore 6
start local 6 28: aload 6
astore 5
end local 6 29: StackMap locals:
StackMap stack:
new sun.tools.attach.AixVirtualMachine$SocketInputStream
dup
aload 0
iload 4
invokespecial sun.tools.attach.AixVirtualMachine$SocketInputStream.<init>:(Lsun/tools/attach/AixVirtualMachine;I)V
astore 6
start local 6 30: aload 0
aload 6
invokevirtual sun.tools.attach.AixVirtualMachine.readInt:(Ljava/io/InputStream;)I
istore 7
start local 7 31: goto 37
end local 7 StackMap locals: sun.tools.attach.AixVirtualMachine java.lang.String java.lang.Object[] java.lang.String int java.io.IOException sun.tools.attach.AixVirtualMachine$SocketInputStream
StackMap stack: java.io.IOException
32: astore 8
start local 8 33: aload 6
invokevirtual sun.tools.attach.AixVirtualMachine$SocketInputStream.close:()V
34: aload 5
ifnull 36
35: aload 5
athrow
36: StackMap locals: sun.tools.attach.AixVirtualMachine java.lang.String java.lang.Object[] java.lang.String int java.io.IOException sun.tools.attach.AixVirtualMachine$SocketInputStream top java.io.IOException
StackMap stack:
aload 8
athrow
end local 8 start local 7 37: StackMap locals: sun.tools.attach.AixVirtualMachine java.lang.String java.lang.Object[] java.lang.String int java.io.IOException sun.tools.attach.AixVirtualMachine$SocketInputStream int
StackMap stack:
iload 7
ifeq 44
38: aload 6
invokevirtual sun.tools.attach.AixVirtualMachine$SocketInputStream.close:()V
39: iload 7
bipush 101
if_icmpne 41
40: new java.io.IOException
dup
ldc "Protocol mismatch with target VM"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
41: StackMap locals:
StackMap stack:
aload 1
ldc "load"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 43
42: new com.sun.tools.attach.AgentLoadException
dup
ldc "Failed to load agent library"
invokespecial com.sun.tools.attach.AgentLoadException.<init>:(Ljava/lang/String;)V
athrow
43: StackMap locals:
StackMap stack:
new java.io.IOException
dup
ldc "Command failed in target VM"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
44: StackMap locals:
StackMap stack:
aload 6
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 45 0 this Lsun/tools/attach/AixVirtualMachine;
0 45 1 cmd Ljava/lang/String;
0 45 2 args [Ljava/lang/Object;
5 7 3 p Ljava/lang/String;
9 45 3 p Ljava/lang/String;
10 45 4 s I
13 15 5 x Ljava/io/IOException;
16 45 5 ioe Ljava/io/IOException;
19 26 6 i I
28 29 6 x Ljava/io/IOException;
30 45 6 sis Lsun/tools/attach/AixVirtualMachine$SocketInputStream;
31 32 7 completionStatus I
37 45 7 completionStatus I
33 37 8 x Ljava/io/IOException;
Exception table:
from to target type
2 6 7 any
7 8 7 any
10 11 12 Class java.io.IOException
16 26 27 Class java.io.IOException
30 31 32 Class java.io.IOException
Exceptions:
throws com.sun.tools.attach.AgentLoadException, java.io.IOException
MethodParameters:
Name Flags
cmd
args
private java.lang.String findSocketFile(int);
descriptor: (I)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: new java.io.File
dup
ldc "/tmp"
new java.lang.StringBuilder
dup
ldc ".java_pid"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;Ljava/lang/String;)V
astore 2
start local 2 1: aload 2
invokevirtual java.io.File.exists:()Z
ifne 3
2: aconst_null
areturn
3: StackMap locals: java.io.File
StackMap stack:
aload 2
invokevirtual java.io.File.getPath:()Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/tools/attach/AixVirtualMachine;
0 4 1 pid I
1 4 2 f Ljava/io/File;
MethodParameters:
Name Flags
pid
private java.io.File createAttachFile(int);
descriptor: (I)Ljava/io/File;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: new java.lang.StringBuilder
dup
ldc ".attach_pid"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
start local 2 1: new java.lang.StringBuilder
dup
ldc "/proc/"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "/cwd/"
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;
astore 3
start local 3 2: new java.io.File
dup
aload 3
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 4
start local 4 3: aload 4
invokevirtual java.io.File.createNewFile:()Z
pop
4: goto 8
StackMap locals: sun.tools.attach.AixVirtualMachine int java.lang.String java.lang.String java.io.File
StackMap stack: java.io.IOException
5: pop
6: new java.io.File
dup
ldc "/tmp"
aload 2
invokespecial java.io.File.<init>:(Ljava/lang/String;Ljava/lang/String;)V
astore 4
7: aload 4
invokevirtual java.io.File.createNewFile:()Z
pop
8: StackMap locals:
StackMap stack:
aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/tools/attach/AixVirtualMachine;
0 9 1 pid I
1 9 2 fn Ljava/lang/String;
2 9 3 path Ljava/lang/String;
3 9 4 f Ljava/io/File;
Exception table:
from to target type
3 4 5 Class java.io.IOException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
pid
private void writeString(int, java.lang.String);
descriptor: (ILjava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokevirtual java.lang.String.length:()I
ifle 6
1: aload 2
ldc "UTF-8"
invokevirtual java.lang.String.getBytes:(Ljava/lang/String;)[B
astore 3
start local 3 2: goto 5
end local 3 StackMap locals:
StackMap stack: java.io.UnsupportedEncodingException
3: pop
4: new java.lang.InternalError
dup
invokespecial java.lang.InternalError.<init>:()V
athrow
start local 3 5: StackMap locals: byte[]
StackMap stack:
iload 1
aload 3
iconst_0
aload 3
arraylength
invokestatic sun.tools.attach.AixVirtualMachine.write:(I[BII)V
end local 3 6: StackMap locals:
StackMap stack:
iconst_1
newarray 8
astore 3
start local 3 7: aload 3
iconst_0
iconst_0
bastore
8: iload 1
aload 3
iconst_0
iconst_1
invokestatic sun.tools.attach.AixVirtualMachine.write:(I[BII)V
9: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/tools/attach/AixVirtualMachine;
0 10 1 fd I
0 10 2 s Ljava/lang/String;
2 3 3 b [B
5 6 3 b [B
7 10 3 b [B
Exception table:
from to target type
1 2 3 Class java.io.UnsupportedEncodingException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
fd
s
static native void sendQuitTo(int);
descriptor: (I)V
flags: (0x0108) ACC_STATIC, ACC_NATIVE
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
pid
static native void checkPermissions(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0108) ACC_STATIC, ACC_NATIVE
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
path
static native int socket();
descriptor: ()I
flags: (0x0108) ACC_STATIC, ACC_NATIVE
Exceptions:
throws java.io.IOException
static native void connect(int, java.lang.String);
descriptor: (ILjava/lang/String;)V
flags: (0x0108) ACC_STATIC, ACC_NATIVE
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
fd
path
static native void close(int);
descriptor: (I)V
flags: (0x0108) ACC_STATIC, ACC_NATIVE
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
fd
static native int read(int, byte[], int, int);
descriptor: (I[BII)I
flags: (0x0108) ACC_STATIC, ACC_NATIVE
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
fd
buf
off
bufLen
static native void write(int, byte[], int, int);
descriptor: (I[BII)V
flags: (0x0108) ACC_STATIC, ACC_NATIVE
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
fd
buf
off
bufLen
}
SourceFile: "AixVirtualMachine.java"
NestMembers:
sun.tools.attach.AixVirtualMachine$SocketInputStream
InnerClasses:
private SocketInputStream = sun.tools.attach.AixVirtualMachine$SocketInputStream of sun.tools.attach.AixVirtualMachine