public class net.bytebuddy.agent.VirtualMachine$ForOpenJ9 extends net.bytebuddy.agent.VirtualMachine$AbstractBase
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: net.bytebuddy.agent.VirtualMachine$ForOpenJ9
super_class: net.bytebuddy.agent.VirtualMachine$AbstractBase
{
private static final java.lang.String IBM_TEMPORARY_FOLDER;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "com.ibm.tools.attach.directory"
private final java.net.Socket socket;
descriptor: Ljava/net/Socket;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
protected void <init>(java.net.Socket);
descriptor: (Ljava/net/Socket;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial net.bytebuddy.agent.VirtualMachine$AbstractBase.<init>:()V
1: aload 0
aload 1
putfield net.bytebuddy.agent.VirtualMachine$ForOpenJ9.socket:Ljava/net/Socket;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lnet/bytebuddy/agent/VirtualMachine$ForOpenJ9;
0 3 1 socket Ljava/net/Socket;
MethodParameters:
Name Flags
socket
public static net.bytebuddy.agent.VirtualMachine attach(java.lang.String);
descriptor: (Ljava/lang/String;)Lnet/bytebuddy/agent/VirtualMachine;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tPlatform cannot be resolved\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
processId
public static net.bytebuddy.agent.VirtualMachine attach(java.lang.String, int, net.bytebuddy.agent.VirtualMachine$ForOpenJ9$Dispatcher);
descriptor: (Ljava/lang/String;ILnet/bytebuddy/agent/VirtualMachine$ForOpenJ9$Dispatcher;)Lnet/bytebuddy/agent/VirtualMachine;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=31, args_size=3
start local 0 start local 1 start local 2 0: new java.io.File
dup
ldc "com.ibm.tools.attach.directory"
aload 2
invokeinterface net.bytebuddy.agent.VirtualMachine$ForOpenJ9$Dispatcher.getTemporaryFolder:()Ljava/lang/String;
invokestatic java.lang.System.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
ldc ".com_ibm_tools_attach"
invokespecial java.io.File.<init>:(Ljava/lang/String;Ljava/lang/String;)V
astore 3
start local 3 1: new java.io.RandomAccessFile
dup
new java.io.File
dup
aload 3
ldc "_attachlock"
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
ldc "rw"
invokespecial java.io.RandomAccessFile.<init>:(Ljava/io/File;Ljava/lang/String;)V
astore 4
start local 4 2: aload 4
invokevirtual java.io.RandomAccessFile.getChannel:()Ljava/nio/channels/FileChannel;
invokevirtual java.nio.channels.FileChannel.lock:()Ljava/nio/channels/FileLock;
astore 5
start local 5 3: new java.io.RandomAccessFile
dup
new java.io.File
dup
aload 3
ldc "_master"
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
ldc "rw"
invokespecial java.io.RandomAccessFile.<init>:(Ljava/io/File;Ljava/lang/String;)V
astore 7
start local 7 4: aload 7
invokevirtual java.io.RandomAccessFile.getChannel:()Ljava/nio/channels/FileChannel;
invokevirtual java.nio.channels.FileChannel.lock:()Ljava/nio/channels/FileLock;
astore 8
start local 8 5: aload 3
invokevirtual java.io.File.listFiles:()[Ljava/io/File;
astore 9
start local 9 6: aload 9
ifnonnull 8
7: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "No descriptor files found in "
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;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals: java.lang.String int net.bytebuddy.agent.VirtualMachine$ForOpenJ9$Dispatcher java.io.File java.io.RandomAccessFile java.nio.channels.FileLock top java.io.RandomAccessFile java.nio.channels.FileLock java.io.File[]
StackMap stack:
aload 2
invokeinterface net.bytebuddy.agent.VirtualMachine$ForOpenJ9$Dispatcher.userId:()I
i2l
lstore 10
start local 10 9: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 6
start local 6 10: aload 9
dup
astore 15
arraylength
istore 14
iconst_0
istore 13
goto 45
StackMap locals: java.lang.String int net.bytebuddy.agent.VirtualMachine$ForOpenJ9$Dispatcher java.io.File java.io.RandomAccessFile java.nio.channels.FileLock java.util.List java.io.RandomAccessFile java.nio.channels.FileLock java.io.File[] long top int int java.io.File[]
StackMap stack:
11: aload 15
iload 13
aaload
astore 12
start local 12 12: aload 12
invokevirtual java.io.File.isDirectory:()Z
ifeq 44
aload 2
aload 12
invokeinterface net.bytebuddy.agent.VirtualMachine$ForOpenJ9$Dispatcher.getOwnerIdOf:(Ljava/io/File;)I
i2l
lload 10
lcmp
ifne 44
13: new java.io.File
dup
aload 12
ldc "attachInfo"
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
astore 16
start local 16 14: aload 16
invokevirtual java.io.File.isFile:()Z
ifeq 44
15: new java.util.Properties
dup
invokespecial java.util.Properties.<init>:()V
astore 17
start local 17 16: new java.io.FileInputStream
dup
aload 16
invokespecial java.io.FileInputStream.<init>:(Ljava/io/File;)V
astore 18
start local 18 17: aload 17
aload 18
invokevirtual java.util.Properties.load:(Ljava/io/InputStream;)V
18: goto 22
StackMap locals: java.lang.String int net.bytebuddy.agent.VirtualMachine$ForOpenJ9$Dispatcher java.io.File java.io.RandomAccessFile java.nio.channels.FileLock java.util.List java.io.RandomAccessFile java.nio.channels.FileLock java.io.File[] long java.io.File int int java.io.File[] java.io.File java.util.Properties java.io.FileInputStream
StackMap stack: java.lang.Throwable
19: astore 19
20: aload 18
invokevirtual java.io.FileInputStream.close:()V
21: aload 19
athrow
22: StackMap locals:
StackMap stack:
aload 18
invokevirtual java.io.FileInputStream.close:()V
23: aload 17
ldc "processId"
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
istore 19
start local 19 24: aload 17
ldc "userUid"
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokestatic java.lang.Long.parseLong:(Ljava/lang/String;)J
lstore 20
start local 20 25: goto 28
end local 20 StackMap locals: java.lang.String int net.bytebuddy.agent.VirtualMachine$ForOpenJ9$Dispatcher java.io.File java.io.RandomAccessFile java.nio.channels.FileLock java.util.List java.io.RandomAccessFile java.nio.channels.FileLock java.io.File[] long java.io.File int int java.io.File[] java.io.File java.util.Properties java.io.FileInputStream int
StackMap stack: java.lang.NumberFormatException
26: pop
27: lconst_0
lstore 20
start local 20 28: StackMap locals: long
StackMap stack:
lload 10
lconst_0
lcmp
ifeq 30
lload 20
lconst_0
lcmp
ifne 30
29: aload 2
aload 16
invokeinterface net.bytebuddy.agent.VirtualMachine$ForOpenJ9$Dispatcher.getOwnerIdOf:(Ljava/io/File;)I
i2l
lstore 20
30: StackMap locals:
StackMap stack:
iload 19
i2l
lconst_0
lcmp
ifeq 31
aload 2
iload 19
invokeinterface net.bytebuddy.agent.VirtualMachine$ForOpenJ9$Dispatcher.isExistingProcess:(I)Z
ifeq 33
31: StackMap locals:
StackMap stack:
aload 6
aload 17
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
32: goto 44
StackMap locals:
StackMap stack:
33: lload 10
lconst_0
lcmp
ifeq 34
lload 20
lload 10
lcmp
ifne 44
34: StackMap locals:
StackMap stack:
aload 12
invokevirtual java.io.File.listFiles:()[Ljava/io/File;
astore 22
start local 22 35: aload 22
ifnull 42
36: aload 22
dup
astore 26
arraylength
istore 25
iconst_0
istore 24
goto 41
StackMap locals: java.lang.String int net.bytebuddy.agent.VirtualMachine$ForOpenJ9$Dispatcher java.io.File java.io.RandomAccessFile java.nio.channels.FileLock java.util.List java.io.RandomAccessFile java.nio.channels.FileLock java.io.File[] long java.io.File int int java.io.File[] java.io.File java.util.Properties java.io.FileInputStream int long java.io.File[] top int int java.io.File[]
StackMap stack:
37: aload 26
iload 24
aaload
astore 23
start local 23 38: aload 23
invokevirtual java.io.File.delete:()Z
ifne 40
39: aload 23
invokevirtual java.io.File.deleteOnExit:()V
end local 23 40: StackMap locals:
StackMap stack:
iinc 24 1
StackMap locals:
StackMap stack:
41: iload 24
iload 25
if_icmplt 37
42: StackMap locals: java.lang.String int net.bytebuddy.agent.VirtualMachine$ForOpenJ9$Dispatcher java.io.File java.io.RandomAccessFile java.nio.channels.FileLock java.util.List java.io.RandomAccessFile java.nio.channels.FileLock java.io.File[] long java.io.File int int java.io.File[] java.io.File java.util.Properties java.io.FileInputStream int long java.io.File[]
StackMap stack:
aload 12
invokevirtual java.io.File.delete:()Z
ifne 44
43: aload 12
invokevirtual java.io.File.deleteOnExit:()V
end local 22 end local 20 end local 19 end local 18 end local 17 end local 16 end local 12 44: StackMap locals: java.lang.String int net.bytebuddy.agent.VirtualMachine$ForOpenJ9$Dispatcher java.io.File java.io.RandomAccessFile java.nio.channels.FileLock java.util.List java.io.RandomAccessFile java.nio.channels.FileLock java.io.File[] long top int int java.io.File[]
StackMap stack:
iinc 13 1
StackMap locals:
StackMap stack:
45: iload 13
iload 14
if_icmplt 11
end local 10 end local 9 46: goto 50
end local 6 StackMap locals: java.lang.String int net.bytebuddy.agent.VirtualMachine$ForOpenJ9$Dispatcher java.io.File java.io.RandomAccessFile java.nio.channels.FileLock top java.io.RandomAccessFile java.nio.channels.FileLock
StackMap stack: java.lang.Throwable
47: astore 27
48: aload 8
invokevirtual java.nio.channels.FileLock.release:()V
49: aload 27
athrow
start local 6 50: StackMap locals: java.lang.String int net.bytebuddy.agent.VirtualMachine$ForOpenJ9$Dispatcher java.io.File java.io.RandomAccessFile java.nio.channels.FileLock java.util.List java.io.RandomAccessFile java.nio.channels.FileLock
StackMap stack:
aload 8
invokevirtual java.nio.channels.FileLock.release:()V
end local 8 51: goto 55
end local 6 StackMap locals: java.lang.String int net.bytebuddy.agent.VirtualMachine$ForOpenJ9$Dispatcher java.io.File java.io.RandomAccessFile java.nio.channels.FileLock top java.io.RandomAccessFile
StackMap stack: java.lang.Throwable
52: astore 28
53: aload 7
invokevirtual java.io.RandomAccessFile.close:()V
54: aload 28
athrow
start local 6 55: StackMap locals: java.lang.String int net.bytebuddy.agent.VirtualMachine$ForOpenJ9$Dispatcher java.io.File java.io.RandomAccessFile java.nio.channels.FileLock java.util.List java.io.RandomAccessFile
StackMap stack:
aload 7
invokevirtual java.io.RandomAccessFile.close:()V
56: aconst_null
astore 8
start local 8 57: aload 6
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 10
goto 62
StackMap locals: java.lang.String int net.bytebuddy.agent.VirtualMachine$ForOpenJ9$Dispatcher java.io.File java.io.RandomAccessFile java.nio.channels.FileLock java.util.List java.io.RandomAccessFile java.util.Properties top java.util.Iterator
StackMap stack:
58: aload 10
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Properties
astore 9
start local 9 59: aload 9
ldc "processId"
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
aload 0
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 62
60: aload 9
astore 8
61: goto 63
end local 9 62: StackMap locals:
StackMap stack:
aload 10
invokeinterface java.util.Iterator.hasNext:()Z
ifne 58
63: StackMap locals: java.lang.String int net.bytebuddy.agent.VirtualMachine$ForOpenJ9$Dispatcher java.io.File java.io.RandomAccessFile java.nio.channels.FileLock java.util.List java.io.RandomAccessFile java.util.Properties
StackMap stack:
aload 8
ifnonnull 65
64: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "Could not locate target process info in "
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;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
65: StackMap locals:
StackMap stack:
new java.net.ServerSocket
dup
iconst_0
invokespecial java.net.ServerSocket.<init>:(I)V
astore 9
start local 9 66: aload 9
iload 1
invokevirtual java.net.ServerSocket.setSoTimeout:(I)V
67: new java.io.File
dup
aload 3
aload 8
ldc "vmId"
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
astore 10
start local 10 68: new java.security.SecureRandom
dup
invokespecial java.security.SecureRandom.<init>:()V
invokevirtual java.security.SecureRandom.nextLong:()J
invokestatic java.lang.Long.toHexString:(J)Ljava/lang/String;
astore 11
start local 11 69: new java.io.File
dup
aload 10
ldc "replyInfo"
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
astore 12
start local 12 70: aload 12
invokevirtual java.io.File.createNewFile:()Z
ifeq 72
71: aload 2
aload 12
sipush 384
invokeinterface net.bytebuddy.agent.VirtualMachine$ForOpenJ9$Dispatcher.setPermissions:(Ljava/io/File;I)V
72: StackMap locals: java.lang.String int net.bytebuddy.agent.VirtualMachine$ForOpenJ9$Dispatcher java.io.File java.io.RandomAccessFile java.nio.channels.FileLock java.util.List java.io.RandomAccessFile java.util.Properties java.net.ServerSocket java.io.File java.lang.String java.io.File
StackMap stack:
new java.io.FileOutputStream
dup
aload 12
invokespecial java.io.FileOutputStream.<init>:(Ljava/io/File;)V
astore 13
start local 13 73: aload 13
aload 11
ldc "UTF-8"
invokevirtual java.lang.String.getBytes:(Ljava/lang/String;)[B
invokevirtual java.io.FileOutputStream.write:([B)V
74: aload 13
ldc "\n"
ldc "UTF-8"
invokevirtual java.lang.String.getBytes:(Ljava/lang/String;)[B
invokevirtual java.io.FileOutputStream.write:([B)V
75: aload 13
aload 9
invokevirtual java.net.ServerSocket.getLocalPort:()I
i2l
invokestatic java.lang.Long.toString:(J)Ljava/lang/String;
ldc "UTF-8"
invokevirtual java.lang.String.getBytes:(Ljava/lang/String;)[B
invokevirtual java.io.FileOutputStream.write:([B)V
76: aload 13
ldc "\n"
ldc "UTF-8"
invokevirtual java.lang.String.getBytes:(Ljava/lang/String;)[B
invokevirtual java.io.FileOutputStream.write:([B)V
77: goto 81
StackMap locals: java.lang.String int net.bytebuddy.agent.VirtualMachine$ForOpenJ9$Dispatcher java.io.File java.io.RandomAccessFile java.nio.channels.FileLock java.util.List java.io.RandomAccessFile java.util.Properties java.net.ServerSocket java.io.File java.lang.String java.io.File java.io.FileOutputStream
StackMap stack: java.lang.Throwable
78: astore 14
79: aload 13
invokevirtual java.io.FileOutputStream.close:()V
80: aload 14
athrow
81: StackMap locals:
StackMap stack:
aload 13
invokevirtual java.io.FileOutputStream.close:()V
82: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 14
start local 14 83: aload 2
invokeinterface net.bytebuddy.agent.VirtualMachine$ForOpenJ9$Dispatcher.pid:()I
i2l
invokestatic java.lang.Long.toString:(J)Ljava/lang/String;
astore 15
start local 15 84: aload 6
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 17
goto 97
StackMap locals: java.lang.String int net.bytebuddy.agent.VirtualMachine$ForOpenJ9$Dispatcher java.io.File java.io.RandomAccessFile java.nio.channels.FileLock java.util.List java.io.RandomAccessFile java.util.Properties java.net.ServerSocket java.io.File java.lang.String java.io.File java.io.FileOutputStream java.util.Map java.lang.String top java.util.Iterator
StackMap stack:
85: aload 17
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Properties
astore 16
start local 16 86: aload 16
ldc "processId"
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
aload 15
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 97
87: aload 16
ldc "attachNotificationSync"
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 18
start local 18 88: new java.io.RandomAccessFile
dup
aload 18
ifnonnull 90
89: new java.io.File
dup
aload 3
ldc "attachNotificationSync"
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
goto 91
90: StackMap locals: java.lang.String int net.bytebuddy.agent.VirtualMachine$ForOpenJ9$Dispatcher java.io.File java.io.RandomAccessFile java.nio.channels.FileLock java.util.List java.io.RandomAccessFile java.util.Properties java.net.ServerSocket java.io.File java.lang.String java.io.File java.io.FileOutputStream java.util.Map java.lang.String java.util.Properties java.util.Iterator java.lang.String
StackMap stack: new 88 new 88
new java.io.File
dup
aload 18
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
StackMap locals: java.lang.String int net.bytebuddy.agent.VirtualMachine$ForOpenJ9$Dispatcher java.io.File java.io.RandomAccessFile java.nio.channels.FileLock java.util.List java.io.RandomAccessFile java.util.Properties java.net.ServerSocket java.io.File java.lang.String java.io.File java.io.FileOutputStream java.util.Map java.lang.String java.util.Properties java.util.Iterator java.lang.String
StackMap stack: new 88 new 88 java.io.File
91: ldc "rw"
92: invokespecial java.io.RandomAccessFile.<init>:(Ljava/io/File;Ljava/lang/String;)V
astore 19
start local 19 93: aload 14
aload 19
aload 19
invokevirtual java.io.RandomAccessFile.getChannel:()Ljava/nio/channels/FileChannel;
invokevirtual java.nio.channels.FileChannel.lock:()Ljava/nio/channels/FileLock;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
94: goto 97
StackMap locals: java.lang.String int net.bytebuddy.agent.VirtualMachine$ForOpenJ9$Dispatcher java.io.File java.io.RandomAccessFile java.nio.channels.FileLock java.util.List java.io.RandomAccessFile java.util.Properties java.net.ServerSocket java.io.File java.lang.String java.io.File java.io.FileOutputStream java.util.Map java.lang.String java.util.Properties java.util.Iterator java.lang.String java.io.RandomAccessFile
StackMap stack: java.io.IOException
95: pop
96: aload 19
invokevirtual java.io.RandomAccessFile.close:()V
end local 19 end local 18 end local 16 97: StackMap locals: java.lang.String int net.bytebuddy.agent.VirtualMachine$ForOpenJ9$Dispatcher java.io.File java.io.RandomAccessFile java.nio.channels.FileLock java.util.List java.io.RandomAccessFile java.util.Properties java.net.ServerSocket java.io.File java.lang.String java.io.File java.io.FileOutputStream java.util.Map java.lang.String top java.util.Iterator
StackMap stack:
aload 17
invokeinterface java.util.Iterator.hasNext:()Z
ifne 85
98: iconst_0
istore 16
start local 16 99: aload 3
invokevirtual java.io.File.listFiles:()[Ljava/io/File;
astore 17
start local 17 100: aload 17
ifnull 111
101: aload 17
dup
astore 21
arraylength
istore 20
iconst_0
istore 19
goto 110
StackMap locals: java.lang.String int net.bytebuddy.agent.VirtualMachine$ForOpenJ9$Dispatcher java.io.File java.io.RandomAccessFile java.nio.channels.FileLock java.util.List java.io.RandomAccessFile java.util.Properties java.net.ServerSocket java.io.File java.lang.String java.io.File java.io.FileOutputStream java.util.Map java.lang.String int java.io.File[] top int int java.io.File[]
StackMap stack:
102: aload 21
iload 19
aaload
astore 18
start local 18 103: aload 18
invokevirtual java.io.File.getName:()Ljava/lang/String;
astore 22
start local 22 104: aload 22
ldc ".trash_"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 109
105: aload 22
ldc "_attachlock"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 109
106: aload 22
ldc "_master"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 109
107: aload 22
ldc "_notifier"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 109
108: iinc 16 1
end local 22 end local 18 109: StackMap locals:
StackMap stack:
iinc 19 1
StackMap locals:
StackMap stack:
110: iload 19
iload 20
if_icmplt 102
111: StackMap locals: java.lang.String int net.bytebuddy.agent.VirtualMachine$ForOpenJ9$Dispatcher java.io.File java.io.RandomAccessFile java.nio.channels.FileLock java.util.List java.io.RandomAccessFile java.util.Properties java.net.ServerSocket java.io.File java.lang.String java.io.File java.io.FileOutputStream java.util.Map java.lang.String int java.io.File[]
StackMap stack:
aload 8
ldc "globalSemaphore"
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokestatic java.lang.Boolean.parseBoolean:(Ljava/lang/String;)Z
istore 18
start local 18 112: aload 2
aload 3
ldc "_notifier"
iload 18
iload 16
invokeinterface net.bytebuddy.agent.VirtualMachine$ForOpenJ9$Dispatcher.incrementSemaphore:(Ljava/io/File;Ljava/lang/String;ZI)V
113: aload 9
invokevirtual java.net.ServerSocket.accept:()Ljava/net/Socket;
astore 19
start local 19 114: new java.lang.String
dup
aload 19
invokestatic net.bytebuddy.agent.VirtualMachine$ForOpenJ9.read:(Ljava/net/Socket;)[B
ldc "UTF-8"
invokespecial java.lang.String.<init>:([BLjava/lang/String;)V
astore 20
start local 20 115: aload 20
new java.lang.StringBuilder
dup
bipush 32
invokestatic java.lang.String.valueOf:(C)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 11
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
bipush 32
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 135
116: new net.bytebuddy.agent.VirtualMachine$ForOpenJ9
dup
aload 19
invokespecial net.bytebuddy.agent.VirtualMachine$ForOpenJ9.<init>:(Ljava/net/Socket;)V
astore 22
117: aload 2
aload 3
ldc "_notifier"
iload 18
iload 16
invokeinterface net.bytebuddy.agent.VirtualMachine$ForOpenJ9$Dispatcher.decrementSemaphore:(Ljava/io/File;Ljava/lang/String;ZI)V
118: aload 14
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 25
goto 128
StackMap locals: java.lang.String int net.bytebuddy.agent.VirtualMachine$ForOpenJ9$Dispatcher java.io.File java.io.RandomAccessFile java.nio.channels.FileLock java.util.List java.io.RandomAccessFile java.util.Properties java.net.ServerSocket java.io.File java.lang.String java.io.File java.io.FileOutputStream java.util.Map java.lang.String int java.io.File[] int java.net.Socket java.lang.String top net.bytebuddy.agent.VirtualMachine top top java.util.Iterator
StackMap stack:
119: aload 25
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 24
start local 24 120: aload 24
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast java.nio.channels.FileLock
invokevirtual java.nio.channels.FileLock.release:()V
121: goto 125
StackMap locals: java.lang.String int net.bytebuddy.agent.VirtualMachine$ForOpenJ9$Dispatcher java.io.File java.io.RandomAccessFile java.nio.channels.FileLock java.util.List java.io.RandomAccessFile java.util.Properties java.net.ServerSocket java.io.File java.lang.String java.io.File java.io.FileOutputStream java.util.Map java.lang.String int java.io.File[] int java.net.Socket java.lang.String top net.bytebuddy.agent.VirtualMachine top java.util.Map$Entry java.util.Iterator
StackMap stack: java.lang.Throwable
122: astore 26
123: aload 24
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.io.RandomAccessFile
invokevirtual java.io.RandomAccessFile.close:()V
124: aload 26
athrow
125: StackMap locals:
StackMap stack:
aload 24
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.io.RandomAccessFile
invokevirtual java.io.RandomAccessFile.close:()V
126: goto 128
StackMap locals:
StackMap stack: java.lang.Throwable
127: pop
end local 24 128: StackMap locals: java.lang.String int net.bytebuddy.agent.VirtualMachine$ForOpenJ9$Dispatcher java.io.File java.io.RandomAccessFile java.nio.channels.FileLock java.util.List java.io.RandomAccessFile java.util.Properties java.net.ServerSocket java.io.File java.lang.String java.io.File java.io.FileOutputStream java.util.Map java.lang.String int java.io.File[] int java.net.Socket java.lang.String top net.bytebuddy.agent.VirtualMachine top top java.util.Iterator
StackMap stack:
aload 25
invokeinterface java.util.Iterator.hasNext:()Z
ifne 119
129: aload 12
invokevirtual java.io.File.delete:()Z
ifne 131
130: aload 12
invokevirtual java.io.File.deleteOnExit:()V
131: StackMap locals: java.lang.String int net.bytebuddy.agent.VirtualMachine$ForOpenJ9$Dispatcher java.io.File java.io.RandomAccessFile java.nio.channels.FileLock java.util.List java.io.RandomAccessFile java.util.Properties java.net.ServerSocket java.io.File java.lang.String java.io.File java.io.FileOutputStream java.util.Map java.lang.String int java.io.File[] int java.net.Socket java.lang.String top net.bytebuddy.agent.VirtualMachine
StackMap stack:
aload 9
invokevirtual java.net.ServerSocket.close:()V
132: aload 5
invokevirtual java.nio.channels.FileLock.release:()V
133: aload 4
invokevirtual java.io.RandomAccessFile.close:()V
134: aload 22
areturn
135: StackMap locals: java.lang.String int net.bytebuddy.agent.VirtualMachine$ForOpenJ9$Dispatcher java.io.File java.io.RandomAccessFile java.nio.channels.FileLock java.util.List java.io.RandomAccessFile java.util.Properties java.net.ServerSocket java.io.File java.lang.String java.io.File java.io.FileOutputStream java.util.Map java.lang.String int java.io.File[] int java.net.Socket java.lang.String
StackMap stack:
aload 19
invokevirtual java.net.Socket.close:()V
136: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "Unexpected answered to attachment: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 20
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
end local 20 end local 19 137: StackMap locals: java.lang.String int net.bytebuddy.agent.VirtualMachine$ForOpenJ9$Dispatcher java.io.File java.io.RandomAccessFile java.nio.channels.FileLock java.util.List java.io.RandomAccessFile java.util.Properties java.net.ServerSocket java.io.File java.lang.String java.io.File java.io.FileOutputStream java.util.Map java.lang.String int java.io.File[] int
StackMap stack: java.lang.Throwable
astore 21
138: aload 2
aload 3
ldc "_notifier"
iload 18
iload 16
invokeinterface net.bytebuddy.agent.VirtualMachine$ForOpenJ9$Dispatcher.decrementSemaphore:(Ljava/io/File;Ljava/lang/String;ZI)V
139: aload 21
athrow
end local 18 end local 17 end local 16 end local 15 140: StackMap locals: java.lang.String int net.bytebuddy.agent.VirtualMachine$ForOpenJ9$Dispatcher java.io.File java.io.RandomAccessFile java.nio.channels.FileLock java.util.List java.io.RandomAccessFile java.util.Properties java.net.ServerSocket java.io.File java.lang.String java.io.File java.io.FileOutputStream java.util.Map
StackMap stack: java.lang.Throwable
astore 23
141: aload 14
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 25
goto 151
StackMap locals: java.lang.String int net.bytebuddy.agent.VirtualMachine$ForOpenJ9$Dispatcher java.io.File java.io.RandomAccessFile java.nio.channels.FileLock java.util.List java.io.RandomAccessFile java.util.Properties java.net.ServerSocket java.io.File java.lang.String java.io.File java.io.FileOutputStream java.util.Map top top top top top top top top java.lang.Throwable top java.util.Iterator
StackMap stack:
142: aload 25
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 24
start local 24 143: aload 24
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast java.nio.channels.FileLock
invokevirtual java.nio.channels.FileLock.release:()V
144: goto 148
StackMap locals: java.lang.String int net.bytebuddy.agent.VirtualMachine$ForOpenJ9$Dispatcher java.io.File java.io.RandomAccessFile java.nio.channels.FileLock java.util.List java.io.RandomAccessFile java.util.Properties java.net.ServerSocket java.io.File java.lang.String java.io.File java.io.FileOutputStream java.util.Map top top top top top top top top java.lang.Throwable java.util.Map$Entry java.util.Iterator
StackMap stack: java.lang.Throwable
145: astore 26
146: aload 24
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.io.RandomAccessFile
invokevirtual java.io.RandomAccessFile.close:()V
147: aload 26
athrow
148: StackMap locals:
StackMap stack:
aload 24
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.io.RandomAccessFile
invokevirtual java.io.RandomAccessFile.close:()V
149: goto 151
StackMap locals:
StackMap stack: java.lang.Throwable
150: pop
end local 24 151: StackMap locals: java.lang.String int net.bytebuddy.agent.VirtualMachine$ForOpenJ9$Dispatcher java.io.File java.io.RandomAccessFile java.nio.channels.FileLock java.util.List java.io.RandomAccessFile java.util.Properties java.net.ServerSocket java.io.File java.lang.String java.io.File java.io.FileOutputStream java.util.Map top top top top top top top top java.lang.Throwable top java.util.Iterator
StackMap stack:
aload 25
invokeinterface java.util.Iterator.hasNext:()Z
ifne 142
152: aload 23
athrow
end local 14 end local 13 153: StackMap locals: java.lang.String int net.bytebuddy.agent.VirtualMachine$ForOpenJ9$Dispatcher java.io.File java.io.RandomAccessFile java.nio.channels.FileLock java.util.List java.io.RandomAccessFile java.util.Properties java.net.ServerSocket java.io.File java.lang.String java.io.File
StackMap stack: java.lang.Throwable
astore 27
154: aload 12
invokevirtual java.io.File.delete:()Z
ifne 156
155: aload 12
invokevirtual java.io.File.deleteOnExit:()V
156: StackMap locals: java.lang.String int net.bytebuddy.agent.VirtualMachine$ForOpenJ9$Dispatcher java.io.File java.io.RandomAccessFile java.nio.channels.FileLock java.util.List java.io.RandomAccessFile java.util.Properties java.net.ServerSocket java.io.File java.lang.String java.io.File top top top top top top top top top top top top top top java.lang.Throwable
StackMap stack:
aload 27
athrow
end local 12 end local 11 end local 10 157: StackMap locals: java.lang.String int net.bytebuddy.agent.VirtualMachine$ForOpenJ9$Dispatcher java.io.File java.io.RandomAccessFile java.nio.channels.FileLock java.util.List java.io.RandomAccessFile java.util.Properties java.net.ServerSocket
StackMap stack: java.lang.Throwable
astore 28
158: aload 9
invokevirtual java.net.ServerSocket.close:()V
159: aload 28
athrow
end local 9 end local 8 end local 7 end local 6 160: StackMap locals: java.lang.String int net.bytebuddy.agent.VirtualMachine$ForOpenJ9$Dispatcher java.io.File java.io.RandomAccessFile java.nio.channels.FileLock
StackMap stack: java.lang.Throwable
astore 29
161: aload 5
invokevirtual java.nio.channels.FileLock.release:()V
162: aload 29
athrow
end local 5 163: StackMap locals: java.lang.String int net.bytebuddy.agent.VirtualMachine$ForOpenJ9$Dispatcher java.io.File java.io.RandomAccessFile
StackMap stack: java.lang.Throwable
astore 30
164: aload 4
invokevirtual java.io.RandomAccessFile.close:()V
165: aload 30
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 166 0 processId Ljava/lang/String;
0 166 1 timeout I
0 166 2 dispatcher Lnet/bytebuddy/agent/VirtualMachine$ForOpenJ9$Dispatcher;
1 166 3 directory Ljava/io/File;
2 166 4 attachLock Ljava/io/RandomAccessFile;
3 163 5 attachLockLock Ljava/nio/channels/FileLock;
10 47 6 virtualMachines Ljava/util/List<Ljava/util/Properties;>;
50 52 6 virtualMachines Ljava/util/List<Ljava/util/Properties;>;
55 160 6 virtualMachines Ljava/util/List<Ljava/util/Properties;>;
4 160 7 master Ljava/io/RandomAccessFile;
5 51 8 masterLock Ljava/nio/channels/FileLock;
6 46 9 vmFolder [Ljava/io/File;
9 46 10 userId J
12 44 12 aVmFolder Ljava/io/File;
14 44 16 attachInfo Ljava/io/File;
16 44 17 virtualMachine Ljava/util/Properties;
17 44 18 inputStream Ljava/io/FileInputStream;
24 44 19 targetProcessId I
25 26 20 targetUserId J
28 44 20 targetUserId J
35 44 22 vmFile [Ljava/io/File;
38 40 23 aVmFile Ljava/io/File;
57 160 8 target Ljava/util/Properties;
59 62 9 virtualMachine Ljava/util/Properties;
66 160 9 serverSocket Ljava/net/ServerSocket;
68 157 10 receiver Ljava/io/File;
69 157 11 key Ljava/lang/String;
70 157 12 reply Ljava/io/File;
73 153 13 outputStream Ljava/io/FileOutputStream;
83 153 14 locks Ljava/util/Map<Ljava/io/RandomAccessFile;Ljava/nio/channels/FileLock;>;
84 140 15 pid Ljava/lang/String;
86 97 16 virtualMachine Ljava/util/Properties;
88 97 18 attachNotificationSync Ljava/lang/String;
93 97 19 syncFile Ljava/io/RandomAccessFile;
99 140 16 notifications I
100 140 17 item [Ljava/io/File;
103 109 18 anItem Ljava/io/File;
104 109 22 name Ljava/lang/String;
112 140 18 global Z
114 137 19 socket Ljava/net/Socket;
115 137 20 answer Ljava/lang/String;
120 128 24 entry Ljava/util/Map$Entry<Ljava/io/RandomAccessFile;Ljava/nio/channels/FileLock;>;
143 151 24 entry Ljava/util/Map$Entry<Ljava/io/RandomAccessFile;Ljava/nio/channels/FileLock;>;
Exception table:
from to target type
17 19 19 any
24 25 26 Class java.lang.NumberFormatException
5 47 47 any
4 52 52 any
73 78 78 any
93 94 95 Class java.io.IOException
120 122 122 any
120 126 127 Class java.lang.Throwable
113 117 137 any
135 137 137 any
83 118 140 any
135 140 140 any
143 145 145 any
143 149 150 Class java.lang.Throwable
70 129 153 any
135 153 153 any
66 131 157 any
135 157 157 any
3 132 160 any
135 160 160 any
2 133 163 any
135 163 163 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
processId
timeout
dispatcher
public java.util.Properties getSystemProperties();
descriptor: ()Ljava/util/Properties;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield net.bytebuddy.agent.VirtualMachine$ForOpenJ9.socket:Ljava/net/Socket;
ldc "ATTACH_GETSYSTEMPROPERTIES"
ldc "UTF-8"
invokevirtual java.lang.String.getBytes:(Ljava/lang/String;)[B
invokestatic net.bytebuddy.agent.VirtualMachine$ForOpenJ9.write:(Ljava/net/Socket;[B)V
1: new java.util.Properties
dup
invokespecial java.util.Properties.<init>:()V
astore 1
start local 1 2: aload 1
new java.io.ByteArrayInputStream
dup
aload 0
getfield net.bytebuddy.agent.VirtualMachine$ForOpenJ9.socket:Ljava/net/Socket;
invokestatic net.bytebuddy.agent.VirtualMachine$ForOpenJ9.read:(Ljava/net/Socket;)[B
invokespecial java.io.ByteArrayInputStream.<init>:([B)V
invokevirtual java.util.Properties.load:(Ljava/io/InputStream;)V
3: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lnet/bytebuddy/agent/VirtualMachine$ForOpenJ9;
2 4 1 properties Ljava/util/Properties;
Exceptions:
throws java.io.IOException
public java.util.Properties getAgentProperties();
descriptor: ()Ljava/util/Properties;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield net.bytebuddy.agent.VirtualMachine$ForOpenJ9.socket:Ljava/net/Socket;
ldc "ATTACH_GETAGENTPROPERTIES"
ldc "UTF-8"
invokevirtual java.lang.String.getBytes:(Ljava/lang/String;)[B
invokestatic net.bytebuddy.agent.VirtualMachine$ForOpenJ9.write:(Ljava/net/Socket;[B)V
1: new java.util.Properties
dup
invokespecial java.util.Properties.<init>:()V
astore 1
start local 1 2: aload 1
new java.io.ByteArrayInputStream
dup
aload 0
getfield net.bytebuddy.agent.VirtualMachine$ForOpenJ9.socket:Ljava/net/Socket;
invokestatic net.bytebuddy.agent.VirtualMachine$ForOpenJ9.read:(Ljava/net/Socket;)[B
invokespecial java.io.ByteArrayInputStream.<init>:([B)V
invokevirtual java.util.Properties.load:(Ljava/io/InputStream;)V
3: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lnet/bytebuddy/agent/VirtualMachine$ForOpenJ9;
2 4 1 properties Ljava/util/Properties;
Exceptions:
throws java.io.IOException
public void loadAgent(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield net.bytebuddy.agent.VirtualMachine$ForOpenJ9.socket:Ljava/net/Socket;
new java.lang.StringBuilder
dup
ldc "ATTACH_LOADAGENT(instrument,"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
bipush 61
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
aload 2
ifnonnull 1
ldc ""
goto 2
StackMap locals: net.bytebuddy.agent.VirtualMachine$ForOpenJ9 java.lang.String java.lang.String
StackMap stack: java.net.Socket java.lang.StringBuilder
1: aload 2
StackMap locals: net.bytebuddy.agent.VirtualMachine$ForOpenJ9 java.lang.String java.lang.String
StackMap stack: java.net.Socket java.lang.StringBuilder java.lang.String
2: invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
bipush 41
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
ldc "UTF-8"
invokevirtual java.lang.String.getBytes:(Ljava/lang/String;)[B
invokestatic net.bytebuddy.agent.VirtualMachine$ForOpenJ9.write:(Ljava/net/Socket;[B)V
3: new java.lang.String
dup
aload 0
getfield net.bytebuddy.agent.VirtualMachine$ForOpenJ9.socket:Ljava/net/Socket;
invokestatic net.bytebuddy.agent.VirtualMachine$ForOpenJ9.read:(Ljava/net/Socket;)[B
ldc "UTF-8"
invokespecial java.lang.String.<init>:([BLjava/lang/String;)V
astore 3
start local 3 4: aload 3
ldc "ATTACH_ERR"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 6
5: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "Target VM failed loading agent: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: java.lang.String
StackMap stack:
aload 3
ldc "ATTACH_ACK"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 8
aload 3
ldc "ATTACH_RESULT="
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 8
7: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "Unexpected response: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lnet/bytebuddy/agent/VirtualMachine$ForOpenJ9;
0 9 1 jarFile Ljava/lang/String;
0 9 2 argument Ljava/lang/String;
4 9 3 answer Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
jarFile
argument
public void loadAgentPath(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield net.bytebuddy.agent.VirtualMachine$ForOpenJ9.socket:Ljava/net/Socket;
new java.lang.StringBuilder
dup
ldc "ATTACH_LOADAGENTPATH("
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
ifnonnull 1
ldc ""
goto 2
StackMap locals: net.bytebuddy.agent.VirtualMachine$ForOpenJ9 java.lang.String java.lang.String
StackMap stack: java.net.Socket java.lang.StringBuilder
1: new java.lang.StringBuilder
dup
bipush 44
invokestatic java.lang.String.valueOf:(C)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
StackMap locals: net.bytebuddy.agent.VirtualMachine$ForOpenJ9 java.lang.String java.lang.String
StackMap stack: java.net.Socket java.lang.StringBuilder java.lang.String
2: invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
bipush 41
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
ldc "UTF-8"
invokevirtual java.lang.String.getBytes:(Ljava/lang/String;)[B
invokestatic net.bytebuddy.agent.VirtualMachine$ForOpenJ9.write:(Ljava/net/Socket;[B)V
3: new java.lang.String
dup
aload 0
getfield net.bytebuddy.agent.VirtualMachine$ForOpenJ9.socket:Ljava/net/Socket;
invokestatic net.bytebuddy.agent.VirtualMachine$ForOpenJ9.read:(Ljava/net/Socket;)[B
ldc "UTF-8"
invokespecial java.lang.String.<init>:([BLjava/lang/String;)V
astore 3
start local 3 4: aload 3
ldc "ATTACH_ERR"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 6
5: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "Target VM failed loading native agent: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: java.lang.String
StackMap stack:
aload 3
ldc "ATTACH_ACK"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 8
aload 3
ldc "ATTACH_RESULT="
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 8
7: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "Unexpected response: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lnet/bytebuddy/agent/VirtualMachine$ForOpenJ9;
0 9 1 path Ljava/lang/String;
0 9 2 argument Ljava/lang/String;
4 9 3 answer Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
path
argument
public void loadAgentLibrary(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield net.bytebuddy.agent.VirtualMachine$ForOpenJ9.socket:Ljava/net/Socket;
new java.lang.StringBuilder
dup
ldc "ATTACH_LOADAGENTLIBRARY("
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
ifnonnull 1
ldc ""
goto 2
StackMap locals: net.bytebuddy.agent.VirtualMachine$ForOpenJ9 java.lang.String java.lang.String
StackMap stack: java.net.Socket java.lang.StringBuilder
1: new java.lang.StringBuilder
dup
bipush 44
invokestatic java.lang.String.valueOf:(C)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
StackMap locals: net.bytebuddy.agent.VirtualMachine$ForOpenJ9 java.lang.String java.lang.String
StackMap stack: java.net.Socket java.lang.StringBuilder java.lang.String
2: invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
bipush 41
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
ldc "UTF-8"
invokevirtual java.lang.String.getBytes:(Ljava/lang/String;)[B
invokestatic net.bytebuddy.agent.VirtualMachine$ForOpenJ9.write:(Ljava/net/Socket;[B)V
3: new java.lang.String
dup
aload 0
getfield net.bytebuddy.agent.VirtualMachine$ForOpenJ9.socket:Ljava/net/Socket;
invokestatic net.bytebuddy.agent.VirtualMachine$ForOpenJ9.read:(Ljava/net/Socket;)[B
ldc "UTF-8"
invokespecial java.lang.String.<init>:([BLjava/lang/String;)V
astore 3
start local 3 4: aload 3
ldc "ATTACH_ERR"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 6
5: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "Target VM failed loading native library: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: java.lang.String
StackMap stack:
aload 3
ldc "ATTACH_ACK"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 8
aload 3
ldc "ATTACH_RESULT="
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 8
7: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "Unexpected response: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lnet/bytebuddy/agent/VirtualMachine$ForOpenJ9;
0 9 1 library Ljava/lang/String;
0 9 2 argument Ljava/lang/String;
4 9 3 answer Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
library
argument
public void startManagementAgent(java.util.Properties);
descriptor: (Ljava/util/Properties;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: new java.io.ByteArrayOutputStream
dup
invokespecial java.io.ByteArrayOutputStream.<init>:()V
astore 2
start local 2 1: aload 1
aload 2
aconst_null
invokevirtual java.util.Properties.store:(Ljava/io/OutputStream;Ljava/lang/String;)V
2: aload 0
getfield net.bytebuddy.agent.VirtualMachine$ForOpenJ9.socket:Ljava/net/Socket;
ldc "ATTACH_START_MANAGEMENT_AGENT"
ldc "UTF-8"
invokevirtual java.lang.String.getBytes:(Ljava/lang/String;)[B
invokestatic net.bytebuddy.agent.VirtualMachine$ForOpenJ9.write:(Ljava/net/Socket;[B)V
3: aload 0
getfield net.bytebuddy.agent.VirtualMachine$ForOpenJ9.socket:Ljava/net/Socket;
aload 2
invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
invokestatic net.bytebuddy.agent.VirtualMachine$ForOpenJ9.write:(Ljava/net/Socket;[B)V
4: new java.lang.String
dup
aload 0
getfield net.bytebuddy.agent.VirtualMachine$ForOpenJ9.socket:Ljava/net/Socket;
invokestatic net.bytebuddy.agent.VirtualMachine$ForOpenJ9.read:(Ljava/net/Socket;)[B
ldc "UTF-8"
invokespecial java.lang.String.<init>:([BLjava/lang/String;)V
astore 3
start local 3 5: aload 3
ldc "ATTACH_ERR"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 7
6: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "Target VM could not start management agent: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals: java.io.ByteArrayOutputStream java.lang.String
StackMap stack:
aload 3
ldc "ATTACH_ACK"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 9
aload 3
ldc "ATTACH_RESULT="
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 9
8: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "Unexpected response: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lnet/bytebuddy/agent/VirtualMachine$ForOpenJ9;
0 10 1 properties Ljava/util/Properties;
1 10 2 outputStream Ljava/io/ByteArrayOutputStream;
5 10 3 answer Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
properties
public java.lang.String startLocalManagementAgent();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
getfield net.bytebuddy.agent.VirtualMachine$ForOpenJ9.socket:Ljava/net/Socket;
ldc "ATTACH_START_LOCAL_MANAGEMENT_AGENT"
ldc "UTF-8"
invokevirtual java.lang.String.getBytes:(Ljava/lang/String;)[B
invokestatic net.bytebuddy.agent.VirtualMachine$ForOpenJ9.write:(Ljava/net/Socket;[B)V
1: new java.lang.String
dup
aload 0
getfield net.bytebuddy.agent.VirtualMachine$ForOpenJ9.socket:Ljava/net/Socket;
invokestatic net.bytebuddy.agent.VirtualMachine$ForOpenJ9.read:(Ljava/net/Socket;)[B
ldc "UTF-8"
invokespecial java.lang.String.<init>:([BLjava/lang/String;)V
astore 1
start local 1 2: aload 1
ldc "ATTACH_ERR"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 4
3: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "Target VM could not start management agent: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: java.lang.String
StackMap stack:
aload 1
ldc "ATTACH_ACK"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 6
5: aload 1
ldc "ATTACH_ACK"
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
areturn
6: StackMap locals:
StackMap stack:
aload 1
ldc "ATTACH_RESULT="
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 8
7: aload 1
ldc "ATTACH_RESULT="
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
areturn
8: StackMap locals:
StackMap stack:
new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "Unexpected response: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lnet/bytebuddy/agent/VirtualMachine$ForOpenJ9;
2 9 1 answer Ljava/lang/String;
Exceptions:
throws java.io.IOException
public void detach();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield net.bytebuddy.agent.VirtualMachine$ForOpenJ9.socket:Ljava/net/Socket;
ldc "ATTACH_DETACH"
ldc "UTF-8"
invokevirtual java.lang.String.getBytes:(Ljava/lang/String;)[B
invokestatic net.bytebuddy.agent.VirtualMachine$ForOpenJ9.write:(Ljava/net/Socket;[B)V
1: aload 0
getfield net.bytebuddy.agent.VirtualMachine$ForOpenJ9.socket:Ljava/net/Socket;
invokestatic net.bytebuddy.agent.VirtualMachine$ForOpenJ9.read:(Ljava/net/Socket;)[B
pop
2: goto 6
StackMap locals:
StackMap stack: java.lang.Throwable
3: astore 1
4: aload 0
getfield net.bytebuddy.agent.VirtualMachine$ForOpenJ9.socket:Ljava/net/Socket;
invokevirtual java.net.Socket.close:()V
5: aload 1
athrow
6: StackMap locals:
StackMap stack:
aload 0
getfield net.bytebuddy.agent.VirtualMachine$ForOpenJ9.socket:Ljava/net/Socket;
invokevirtual java.net.Socket.close:()V
7: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lnet/bytebuddy/agent/VirtualMachine$ForOpenJ9;
Exception table:
from to target type
0 3 3 any
Exceptions:
throws java.io.IOException
private static void write(java.net.Socket, byte[]);
descriptor: (Ljava/net/Socket;[B)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.net.Socket.getOutputStream:()Ljava/io/OutputStream;
aload 1
invokevirtual java.io.OutputStream.write:([B)V
1: aload 0
invokevirtual java.net.Socket.getOutputStream:()Ljava/io/OutputStream;
iconst_0
invokevirtual java.io.OutputStream.write:(I)V
2: aload 0
invokevirtual java.net.Socket.getOutputStream:()Ljava/io/OutputStream;
invokevirtual java.io.OutputStream.flush:()V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 socket Ljava/net/Socket;
0 4 1 value [B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
socket
value
private static byte[] read(java.net.Socket);
descriptor: (Ljava/net/Socket;)[B
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=4, args_size=1
start local 0 0: new java.io.ByteArrayOutputStream
dup
invokespecial java.io.ByteArrayOutputStream.<init>:()V
astore 1
start local 1 1: sipush 1024
newarray 8
astore 2
start local 2 2: goto 7
start local 3 3: StackMap locals: java.io.ByteArrayOutputStream byte[] int
StackMap stack:
iload 3
ifle 6
aload 2
iload 3
iconst_1
isub
baload
ifne 6
4: aload 1
aload 2
iconst_0
iload 3
iconst_1
isub
invokevirtual java.io.ByteArrayOutputStream.write:([BII)V
5: goto 9
6: StackMap locals:
StackMap stack:
aload 1
aload 2
iconst_0
iload 3
invokevirtual java.io.ByteArrayOutputStream.write:([BII)V
end local 3 7: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.net.Socket.getInputStream:()Ljava/io/InputStream;
aload 2
invokevirtual java.io.InputStream.read:([B)I
dup
istore 3
start local 3 8: iconst_m1
if_icmpne 3
9: StackMap locals: int
StackMap stack:
aload 1
invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 socket Ljava/net/Socket;
1 10 1 outputStream Ljava/io/ByteArrayOutputStream;
2 10 2 buffer [B
3 7 3 length I
8 10 3 length I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
socket
}
SourceFile: "VirtualMachine.java"
NestHost: net.bytebuddy.agent.VirtualMachine
InnerClasses:
public abstract Entry = java.util.Map$Entry of java.util.Map
public abstract AbstractBase = net.bytebuddy.agent.VirtualMachine$AbstractBase of net.bytebuddy.agent.VirtualMachine
public ForOpenJ9 = net.bytebuddy.agent.VirtualMachine$ForOpenJ9 of net.bytebuddy.agent.VirtualMachine
public abstract Dispatcher = net.bytebuddy.agent.VirtualMachine$ForOpenJ9$Dispatcher of net.bytebuddy.agent.VirtualMachine$ForOpenJ9