sun.tools.attach.WindowsVirtualMachine.class Maven / Gradle / Ivy
???? 2 ? &sun/tools/attach/WindowsVirtualMachine &sun/tools/attach/HotSpotVirtualMachine stub [B hProcess J $assertionsDisabled Z ()V Code
java/lang/Class desiredAssertionStatus ()Z
attach
java/lang/System loadLibrary (Ljava/lang/String;)V
init
" # $ generateStub ()[B & LineNumberTable LocalVariableTable
StackMapTable >(Lcom/sun/tools/attach/spi/AttachProvider;Ljava/lang/String;)V
Exceptions . 0com/sun/tools/attach/AttachNotSupportedException 0 java/io/IOException
2 * +
4 6 5 java/lang/Integer 7 8 parseInt (Ljava/lang/String;)I : Invalid process identifier
- < *
> ? @ openProcess (I)J B D java/lang/Object
F G H enqueue =(J[BLjava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
/ J K L
getMessage ()Ljava/lang/String; N java/lang/NumberFormatException this (Lsun/tools/attach/WindowsVirtualMachine; provider )Lcom/sun/tools/attach/spi/AttachProvider; id Ljava/lang/String; pid I x !Ljava/lang/NumberFormatException; Ljava/io/IOException; [ 'com/sun/tools/attach/spi/AttachProvider ] java/lang/String detach????????
b c d closeProcess (J)V f java/lang/Throwable execute <(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/InputStream; j 'com/sun/tools/attach/AgentLoadException l java/lang/AssertionError
k n * p java/util/Random
o n
o s t u nextInt ()I w java/lang/StringBuilder y \\.\pipe\javatool
v <
v | } ~ append (I)Ljava/lang/StringBuilder;
v ? ? L toString
? ? ?
createPipe (Ljava/lang/String;)J
? ? d closePipe ? Detached from target VM
/ <
? ? d connectPipe ? 7sun/tools/attach/WindowsVirtualMachine$PipedInputStream
? ? * ? ,(Lsun/tools/attach/WindowsVirtualMachine;J)V
? ? ? readInt (Ljava/io/InputStream;)I ? load
\ ? ? ? equals (Ljava/lang/Object;)Z ? Failed to load agent library
i < ? Command failed in target VM cmd args [Ljava/lang/Object; r pipename hPipe is 9Lsun/tools/attach/WindowsVirtualMachine$PipedInputStream; status ioe ? readPipe (J[BII)I
SourceFile WindowsVirtualMachine.java InnerClasses PipedInputStream !
B
V ? ? ? ? ? ? ? !? %? ' # ? ? ? ( ) @ * + , - /
? E*+,? 1,? 3>? :? -Y9? ;?*? =? A*? A? %? C? E? :? -Y? I? ;?? M " 2 5 / ' &