vtk.vtkJavaMemoryManagerImpl.class Maven / Gradle / Ivy
???? 3 ?
java/lang/Object ()V (java/util/concurrent/locks/ReentrantLock
vtk/vtkJavaMemoryManagerImpl lock *Ljava/util/concurrent/locks/ReentrantLock; java/util/HashMap
objectMap Ljava/util/HashMap; objectMapClassName vtk/vtkJavaGarbageCollector
garbageCollector Lvtk/vtkJavaGarbageCollector;
" # $ % & java/lang/Long longValue ()J ( java/lang/RuntimeException * *Invalid ID, can not be null or equal to 0.
' , - (Ljava/lang/String;)V
/ 0 1 get &(Ljava/lang/Object;)Ljava/lang/Object; 3 java/lang/ref/WeakReference
2 5 0 6 ()Ljava/lang/Object; 8 vtk/vtkObjectBase
:
< = unlock
? @ A unRegisterJavaObject (Ljava/lang/Long;)V
7 C D E VTKGetClassNameFromReference (J)Ljava/lang/String; G java/lang/StringBuilder
F J vtk.
F L M N append -(Ljava/lang/String;)Ljava/lang/StringBuilder;
F P Q R toString ()Ljava/lang/String;
T U V W X java/lang/Class forName %(Ljava/lang/String;)Ljava/lang/Class; " Z [ \ TYPE Ljava/lang/Class;
T ^ _ ` getConstructor 3([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
b c d e f java/lang/reflect/Constructor newInstance '([Ljava/lang/Object;)Ljava/lang/Object; h java/lang/Exception
g j k printStackTrace
2 m n (Ljava/lang/Object;)V
p q r put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
7 t u R GetClassName
w x 1 remove
7 z { | VTKDeleteReference (J)V ~ nYou try to delete a vtkObject that is not referenced in the Java object Map. You may have call Delete() twice.
? ? ? ? java/lang/System gc ? vtk/vtkReferenceInformation
? ? ? (Z)V ? java/util/TreeSet
? ? ? keySet ()Ljava/util/Set;
? ? ? (Ljava/util/Collection;)V
? ? ? ? iterator ()Ljava/util/Iterator; ? ? ? ? ? java/util/Iterator hasNext ()Z ? ? ? 6 next ? java/lang/String
? ? ? -
addFreeObject
? ? ? -
addKeptObject ? ? ? lastGcResult Lvtk/vtkReferenceInformation;
? ? ? size ()I ? vtk/vtkJavaMemoryManager Signature WLjava/util/HashMap;>; 7Ljava/util/HashMap; Code LineNumberTable
getJavaObject %(Ljava/lang/Long;)Lvtk/vtkObjectBase;
StackMapTable ? java/lang/Throwable registerJavaObject &(Ljava/lang/Long;Lvtk/vtkObjectBase;)V (Z)Lvtk/vtkReferenceInformation; getAutoGarbageCollector ()Lvtk/vtkJavaGarbageCollector; deleteAll getSize getLastReferenceInformation ()Lvtk/vtkReferenceInformation;
SourceFile vtkJavaMemoryManagerImpl.java ! ? ? ? ? ? ? ? ? ] 1*? *? Y? ?
*? Y? ? *? Y? ? *? Y? ? ? ? % 0 ? ? ? ? ?+? +? ! ??
? 'Y)? +?*? +? .? 2M,? ?
,? 4? 7N,? -? ?*?
? 9*? +? .? 2M,? ?
,? 4? 7N-? -:*?
? ;?,? -? *+? >-? Q+? !? B:? FY? HI? K? K? O? S:? TY? YS? ]:? Y+S? a? 7N?
:? i*?
? ;? :*?
? ;?-? ? ? ? g ; e ? o ? ? ? ? ? ? n "
# ' # ( 3 + ; . B 3 N 4 ^ 5 b 6 e J l 6 o : w ; | ? ? A ? B ? C ? D ? G ? E ? F ? J ? K ? J ? K ? M ? '
? 2F 7? 7F 7? J gI ? ? ? ? ? :*?
? 9*? +? 2Y,? l? oW*? +,? s? oW*?
? ;?
N*?
? ;-?? % / ? " S T U % W , X / W 7 X 9 Y ? o ? @ A ? ? I*?
? 9*? +? vW*? +? v? 2M,?
+? !? y?
? 'Y}? +?*?
? ;?
N*?
? ;-?? 4 > ? . ^ _ ` c d * f 4 i ; j > i F j H k ? ? * 2? I ? ? ? ? , ?? *?
? 9? ?Y? ?M? ?Y*? ? ?? ?? ?N-? ? ? S-? ? ? ":*? ? .? 2? 4? 7:? ,*? ? .? ?? ?*? >? ,*? ? .? ?? ????*,? ?,N*?
? ;-?:*?
? ;? ? ? ? ? ? ? B o q
r s 9 t M u R v b w k y { { ~ } ? ~ ? ? ? ~ ? ? ? ? ? ( ? % ? ?? E " 7? ? ? ? ? ? ? *? ? ? ? ? ? ? ? T*? ? ?<*?
? 9? ?Y*? ? ?? ?? ?M,? ? ? ,? ? ? "N*-? >???*?
? ;? :*?
? ;?? <