sun.tools.attach.SolarisVirtualMachine.class Maven / Gradle / Ivy
???? 2 ? &sun/tools/attach/SolarisVirtualMachine &sun/tools/attach/HotSpotVirtualMachine tmpdir1 Ljava/lang/String; tmpdir fd I $assertionsDisabled Z ()V Code
java/lang/Class desiredAssertionStatus ()Z
java.io.tmpdir
java/lang/System getProperty &(Ljava/lang/String;)Ljava/lang/String; " /var/tmp
$ & % java/lang/String ' ( equals (Ljava/lang/Object;)Z * /var/tmp/ , /tmp . 0 attach
2 3 4 loadLibrary (Ljava/lang/String;)V LineNumberTable LocalVariableTable
StackMapTable >(Lcom/sun/tools/attach/spi/AttachProvider;Ljava/lang/String;)V
Exceptions < 0com/sun/tools/attach/AttachNotSupportedException > java/io/IOException
@ 8 9 B
D F E java/lang/Integer G H parseInt (Ljava/lang/String;)I J invalid process identifier
; L 8 4
N O P openDoor (I)I
R S T createAttachFile (I)Ljava/io/File;
V W X sigquit (I)V ?
\ ] ^
attachTimeout ()J
` b a java/lang/Thread c d sleep (J)V f KUnable to open door: target process not responding or HotSpot VM not loaded
h j i java/io/File k delete m java/lang/AssertionError
l o 8
q java/lang/NumberFormatException s java/io/FileNotFoundException u java/lang/InterruptedException this (Lsun/tools/attach/SolarisVirtualMachine; provider )Lcom/sun/tools/attach/spi/AttachProvider; vmid pid x !Ljava/lang/NumberFormatException; fnf1 Ljava/io/FileNotFoundException; f Ljava/io/File; i delay J retries ? 'com/sun/tools/attach/spi/AttachProvider ? java/lang/Throwable detach
? ? X close execute <(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/InputStream; ? 'com/sun/tools/attach/AgentLoadException ? Detached from target VM
= L
? ? ? enqueue )(ILjava/lang/String;[Ljava/lang/Object;)I ? 8sun/tools/attach/SolarisVirtualMachine$SocketInputStream
? ? 8 ? ,(Lsun/tools/attach/SolarisVirtualMachine;I)V
? ? ? readInt (Ljava/io/InputStream;)I
? ? ?
? load ? Failed to load agent library
? L ? Command failed in target VM cmd args [Ljava/lang/Object; door s sis :Lsun/tools/attach/SolarisVirtualMachine$SocketInputStream; completionStatus ioe Ljava/io/IOException; ? ? java/lang/StringBuilder ? .java_pid
? L
? ? ? ? append (I)Ljava/lang/StringBuilder;
? ? ? ? toString ()Ljava/lang/String; ? /proc/ ? /cwd/
? ? ? ? -(Ljava/lang/String;)Ljava/lang/StringBuilder;
? ? H open
$ ? ? ? valueOf &(Ljava/lang/Object;)Ljava/lang/String; ? /
? ? 4 checkPermissions fn path fnf ? .attach_pid
h L
h ? ?
createNewFile
h ? 8 ? '(Ljava/lang/String;Ljava/lang/String;)V read (I[BII)I
SourceFile SolarisVirtualMachine.java InnerClasses SocketInputStream !
? ?? ? ? ? ? ? ? !? #? ? )? #? +? ? ? -/? 1? 5 &