public abstract class com.sun.prism.impl.ManagedResource<T> implements com.sun.prism.GraphicsResource
  minor version: 0
  major version: 59
  flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
  this_class: com.sun.prism.impl.ManagedResource
  super_class: java.lang.Object
{
  static final boolean trackLockSources;
    descriptor: Z
    flags: (0x0018) ACC_STATIC, ACC_FINAL
    ConstantValue: 0

  protected T resource;
    descriptor: Ljava/lang/Object;
    flags: (0x0004) ACC_PROTECTED
    Signature: TT;

  private final com.sun.prism.impl.ResourcePool<T> pool;
    descriptor: Lcom/sun/prism/impl/ResourcePool;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL
    Signature: Lcom/sun/prism/impl/ResourcePool<TT;>;

  private int lockcount;
    descriptor: I
    flags: (0x0002) ACC_PRIVATE

  private int employcount;
    descriptor: I
    flags: (0x0002) ACC_PRIVATE

  java.util.ArrayList<java.lang.Throwable> lockedFrom;
    descriptor: Ljava/util/ArrayList;
    flags: (0x0000) 
    Signature: Ljava/util/ArrayList<Ljava/lang/Throwable;>;

  private boolean permanent;
    descriptor: Z
    flags: (0x0002) ACC_PRIVATE

  private boolean mismatchDetected;
    descriptor: Z
    flags: (0x0002) ACC_PRIVATE

  private boolean disposalRequested;
    descriptor: Z
    flags: (0x0002) ACC_PRIVATE

  private int age;
    descriptor: I
    flags: (0x0002) ACC_PRIVATE

  static boolean _isgone(com.sun.prism.impl.ManagedResource<?>);
    descriptor: (Lcom/sun/prism/impl/ManagedResource;)Z
    flags: (0x0008) ACC_STATIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // com.sun.prism.impl.ManagedResource mr
         0: .line 35
            aload 0 /* mr */
            ifnonnull 1
            iconst_1
            ireturn
         1: .line 36
      StackMap locals:
      StackMap stack:
            aload 0 /* mr */
            getfield com.sun.prism.impl.ManagedResource.disposalRequested:Z
            ifeq 6
         2: .line 37
            aload 0 /* mr */
            invokevirtual com.sun.prism.impl.ManagedResource.free:()V
         3: .line 38
            aload 0 /* mr */
            aconst_null
            putfield com.sun.prism.impl.ManagedResource.resource:Ljava/lang/Object;
         4: .line 39
            aload 0 /* mr */
            iconst_0
            putfield com.sun.prism.impl.ManagedResource.disposalRequested:Z
         5: .line 40
            iconst_1
            ireturn
         6: .line 42
      StackMap locals:
      StackMap stack:
            aload 0 /* mr */
            invokevirtual com.sun.prism.impl.ManagedResource.isValid:()Z
            ifeq 7
            iconst_0
            goto 8
      StackMap locals:
      StackMap stack:
         7: iconst_1
      StackMap locals:
      StackMap stack: int
         8: ireturn
        end local 0 // com.sun.prism.impl.ManagedResource mr
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    9     0    mr  Lcom/sun/prism/impl/ManagedResource<*>;
    Signature: (Lcom/sun/prism/impl/ManagedResource<*>;)Z
    MethodParameters:
      Name  Flags
      mr    

  protected void <init>(T, com.sun.prism.impl.ResourcePool<T>);
    descriptor: (Ljava/lang/Object;Lcom/sun/prism/impl/ResourcePool;)V
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=2, locals=3, args_size=3
        start local 0 // com.sun.prism.impl.ManagedResource this
        start local 1 // java.lang.Object resource
        start local 2 // com.sun.prism.impl.ResourcePool pool
         0: .line 55
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 56
            aload 0 /* this */
            aload 1 /* resource */
            putfield com.sun.prism.impl.ManagedResource.resource:Ljava/lang/Object;
         2: .line 57
            aload 0 /* this */
            aload 2 /* pool */
            putfield com.sun.prism.impl.ManagedResource.pool:Lcom/sun/prism/impl/ResourcePool;
         3: .line 61
            aload 0 /* this */
            invokevirtual com.sun.prism.impl.ManagedResource.manage:()V
         4: .line 62
            aload 0 /* this */
            invokevirtual com.sun.prism.impl.ManagedResource.lock:()Ljava/lang/Object;
            pop
         5: .line 63
            return
        end local 2 // com.sun.prism.impl.ResourcePool pool
        end local 1 // java.lang.Object resource
        end local 0 // com.sun.prism.impl.ManagedResource this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0    6     0      this  Lcom/sun/prism/impl/ManagedResource<TT;>;
            0    6     1  resource  TT;
            0    6     2      pool  Lcom/sun/prism/impl/ResourcePool<TT;>;
    Signature: (TT;Lcom/sun/prism/impl/ResourcePool<TT;>;)V
    MethodParameters:
          Name  Flags
      resource  
      pool      

  private void manage();
    descriptor: ()V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // com.sun.prism.impl.ManagedResource this
         0: .line 66
            aload 0 /* this */
            getfield com.sun.prism.impl.ManagedResource.pool:Lcom/sun/prism/impl/ResourcePool;
            aload 0 /* this */
            invokeinterface com.sun.prism.impl.ResourcePool.resourceManaged:(Lcom/sun/prism/impl/ManagedResource;)V
         1: .line 67
            return
        end local 0 // com.sun.prism.impl.ManagedResource this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lcom/sun/prism/impl/ManagedResource<TT;>;

  public final T getResource();
    descriptor: ()Ljava/lang/Object;
    flags: (0x0011) ACC_PUBLIC, ACC_FINAL
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // com.sun.prism.impl.ManagedResource this
         0: .line 70
            aload 0 /* this */
            invokevirtual com.sun.prism.impl.ManagedResource.assertLocked:()V
         1: .line 71
            aload 0 /* this */
            getfield com.sun.prism.impl.ManagedResource.resource:Ljava/lang/Object;
            areturn
        end local 0 // com.sun.prism.impl.ManagedResource this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lcom/sun/prism/impl/ManagedResource<TT;>;
    Signature: ()TT;

  public final com.sun.prism.impl.ResourcePool<T> getPool();
    descriptor: ()Lcom/sun/prism/impl/ResourcePool;
    flags: (0x0011) ACC_PUBLIC, ACC_FINAL
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // com.sun.prism.impl.ManagedResource this
         0: .line 75
            aload 0 /* this */
            getfield com.sun.prism.impl.ManagedResource.pool:Lcom/sun/prism/impl/ResourcePool;
            areturn
        end local 0 // com.sun.prism.impl.ManagedResource this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lcom/sun/prism/impl/ManagedResource<TT;>;
    Signature: ()Lcom/sun/prism/impl/ResourcePool<TT;>;

  public boolean isValid();
    descriptor: ()Z
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // com.sun.prism.impl.ManagedResource this
         0: .line 79
            aload 0 /* this */
            getfield com.sun.prism.impl.ManagedResource.resource:Ljava/lang/Object;
            ifnull 1
            aload 0 /* this */
            getfield com.sun.prism.impl.ManagedResource.disposalRequested:Z
            ifne 1
            iconst_1
            ireturn
      StackMap locals:
      StackMap stack:
         1: iconst_0
            ireturn
        end local 0 // com.sun.prism.impl.ManagedResource this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lcom/sun/prism/impl/ManagedResource<TT;>;

  public boolean isDisposalRequested();
    descriptor: ()Z
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // com.sun.prism.impl.ManagedResource this
         0: .line 83
            aload 0 /* this */
            getfield com.sun.prism.impl.ManagedResource.disposalRequested:Z
            ireturn
        end local 0 // com.sun.prism.impl.ManagedResource this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lcom/sun/prism/impl/ManagedResource<TT;>;

  public final boolean isLocked();
    descriptor: ()Z
    flags: (0x0011) ACC_PUBLIC, ACC_FINAL
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // com.sun.prism.impl.ManagedResource this
         0: .line 87
            aload 0 /* this */
            getfield com.sun.prism.impl.ManagedResource.lockcount:I
            ifle 1
            iconst_1
            ireturn
      StackMap locals:
      StackMap stack:
         1: iconst_0
            ireturn
        end local 0 // com.sun.prism.impl.ManagedResource this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lcom/sun/prism/impl/ManagedResource<TT;>;

  public final int getLockCount();
    descriptor: ()I
    flags: (0x0011) ACC_PUBLIC, ACC_FINAL
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // com.sun.prism.impl.ManagedResource this
         0: .line 91
            aload 0 /* this */
            getfield com.sun.prism.impl.ManagedResource.lockcount:I
            ireturn
        end local 0 // com.sun.prism.impl.ManagedResource this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lcom/sun/prism/impl/ManagedResource<TT;>;

  public final void assertLocked();
    descriptor: ()V
    flags: (0x0011) ACC_PUBLIC, ACC_FINAL
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // com.sun.prism.impl.ManagedResource this
         0: .line 95
            aload 0 /* this */
            getfield com.sun.prism.impl.ManagedResource.lockcount:I
            ifgt 2
         1: .line 96
            new java.lang.IllegalStateException
            dup
            ldc "Operation requires resource lock"
            invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 98
      StackMap locals:
      StackMap stack:
            return
        end local 0 // com.sun.prism.impl.ManagedResource this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lcom/sun/prism/impl/ManagedResource<TT;>;

  public final boolean isPermanent();
    descriptor: ()Z
    flags: (0x0011) ACC_PUBLIC, ACC_FINAL
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // com.sun.prism.impl.ManagedResource this
         0: .line 101
            aload 0 /* this */
            getfield com.sun.prism.impl.ManagedResource.permanent:Z
            ireturn
        end local 0 // com.sun.prism.impl.ManagedResource this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lcom/sun/prism/impl/ManagedResource<TT;>;

  public final boolean isInteresting();
    descriptor: ()Z
    flags: (0x0011) ACC_PUBLIC, ACC_FINAL
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // com.sun.prism.impl.ManagedResource this
         0: .line 105
            aload 0 /* this */
            getfield com.sun.prism.impl.ManagedResource.employcount:I
            ifle 1
            iconst_1
            ireturn
      StackMap locals:
      StackMap stack:
         1: iconst_0
            ireturn
        end local 0 // com.sun.prism.impl.ManagedResource this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lcom/sun/prism/impl/ManagedResource<TT;>;

  public final int getInterestCount();
    descriptor: ()I
    flags: (0x0011) ACC_PUBLIC, ACC_FINAL
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // com.sun.prism.impl.ManagedResource this
         0: .line 109
            aload 0 /* this */
            getfield com.sun.prism.impl.ManagedResource.employcount:I
            ireturn
        end local 0 // com.sun.prism.impl.ManagedResource this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lcom/sun/prism/impl/ManagedResource<TT;>;

  public void free();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=0, locals=1, args_size=1
        start local 0 // com.sun.prism.impl.ManagedResource this
         0: .line 113
            return
        end local 0 // com.sun.prism.impl.ManagedResource this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lcom/sun/prism/impl/ManagedResource<TT;>;

  public int getAge();
    descriptor: ()I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // com.sun.prism.impl.ManagedResource this
         0: .line 116
            aload 0 /* this */
            getfield com.sun.prism.impl.ManagedResource.age:I
            ireturn
        end local 0 // com.sun.prism.impl.ManagedResource this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lcom/sun/prism/impl/ManagedResource<TT;>;

  public final void dispose();
    descriptor: ()V
    flags: (0x0011) ACC_PUBLIC, ACC_FINAL
    Code:
      stack=2, locals=2, args_size=1
        start local 0 // com.sun.prism.impl.ManagedResource this
         0: .line 121
            aload 0 /* this */
            getfield com.sun.prism.impl.ManagedResource.pool:Lcom/sun/prism/impl/ResourcePool;
            invokeinterface com.sun.prism.impl.ResourcePool.isManagerThread:()Z
            ifeq 8
         1: .line 122
            aload 0 /* this */
            getfield com.sun.prism.impl.ManagedResource.resource:Ljava/lang/Object;
            astore 1 /* r */
        start local 1 // java.lang.Object r
         2: .line 123
            aload 1 /* r */
            ifnull 9
         3: .line 124
            aload 0 /* this */
            invokevirtual com.sun.prism.impl.ManagedResource.free:()V
         4: .line 125
            aload 0 /* this */
            iconst_0
            putfield com.sun.prism.impl.ManagedResource.disposalRequested:Z
         5: .line 126
            aload 0 /* this */
            aconst_null
            putfield com.sun.prism.impl.ManagedResource.resource:Ljava/lang/Object;
         6: .line 127
            aload 0 /* this */
            getfield com.sun.prism.impl.ManagedResource.pool:Lcom/sun/prism/impl/ResourcePool;
            aload 0 /* this */
            invokeinterface com.sun.prism.impl.ResourcePool.resourceFreed:(Lcom/sun/prism/impl/ManagedResource;)V
        end local 1 // java.lang.Object r
         7: .line 129
            goto 9
         8: .line 130
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            iconst_1
            putfield com.sun.prism.impl.ManagedResource.disposalRequested:Z
         9: .line 132
      StackMap locals:
      StackMap stack:
            return
        end local 0 // com.sun.prism.impl.ManagedResource this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   10     0  this  Lcom/sun/prism/impl/ManagedResource<TT;>;
            2    7     1     r  TT;

  public final void makePermanent();
    descriptor: ()V
    flags: (0x0011) ACC_PUBLIC, ACC_FINAL
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // com.sun.prism.impl.ManagedResource this
         0: .line 135
            aload 0 /* this */
            invokevirtual com.sun.prism.impl.ManagedResource.assertLocked:()V
         1: .line 136
            aload 0 /* this */
            iconst_1
            putfield com.sun.prism.impl.ManagedResource.permanent:Z
         2: .line 137
            return
        end local 0 // com.sun.prism.impl.ManagedResource this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lcom/sun/prism/impl/ManagedResource<TT;>;

  public final T lock();
    descriptor: ()Ljava/lang/Object;
    flags: (0x0011) ACC_PUBLIC, ACC_FINAL
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // com.sun.prism.impl.ManagedResource this
         0: .line 140
            aload 0 /* this */
            dup
            getfield com.sun.prism.impl.ManagedResource.lockcount:I
            iconst_1
            iadd
            putfield com.sun.prism.impl.ManagedResource.lockcount:I
         1: .line 141
            aload 0 /* this */
            iconst_0
            putfield com.sun.prism.impl.ManagedResource.age:I
         2: .line 145
            aload 0 /* this */
            getfield com.sun.prism.impl.ManagedResource.resource:Ljava/lang/Object;
            areturn
        end local 0 // com.sun.prism.impl.ManagedResource this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lcom/sun/prism/impl/ManagedResource<TT;>;
    Signature: ()TT;

  void unlockall();
    descriptor: ()V
    flags: (0x0000) 
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // com.sun.prism.impl.ManagedResource this
         0: .line 149
            aload 0 /* this */
            iconst_0
            putfield com.sun.prism.impl.ManagedResource.lockcount:I
         1: .line 153
            return
        end local 0 // com.sun.prism.impl.ManagedResource this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lcom/sun/prism/impl/ManagedResource<TT;>;

  public final void unlock();
    descriptor: ()V
    flags: (0x0011) ACC_PUBLIC, ACC_FINAL
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // com.sun.prism.impl.ManagedResource this
         0: .line 156
            aload 0 /* this */
            invokevirtual com.sun.prism.impl.ManagedResource.assertLocked:()V
         1: .line 157
            aload 0 /* this */
            dup
            getfield com.sun.prism.impl.ManagedResource.lockcount:I
            iconst_1
            isub
            putfield com.sun.prism.impl.ManagedResource.lockcount:I
         2: .line 161
            return
        end local 0 // com.sun.prism.impl.ManagedResource this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lcom/sun/prism/impl/ManagedResource<TT;>;

  public final void contentsUseful();
    descriptor: ()V
    flags: (0x0011) ACC_PUBLIC, ACC_FINAL
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // com.sun.prism.impl.ManagedResource this
         0: .line 164
            aload 0 /* this */
            invokevirtual com.sun.prism.impl.ManagedResource.assertLocked:()V
         1: .line 165
            aload 0 /* this */
            dup
            getfield com.sun.prism.impl.ManagedResource.employcount:I
            iconst_1
            iadd
            putfield com.sun.prism.impl.ManagedResource.employcount:I
         2: .line 166
            return
        end local 0 // com.sun.prism.impl.ManagedResource this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lcom/sun/prism/impl/ManagedResource<TT;>;

  public final void contentsNotUseful();
    descriptor: ()V
    flags: (0x0011) ACC_PUBLIC, ACC_FINAL
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // com.sun.prism.impl.ManagedResource this
         0: .line 169
            aload 0 /* this */
            getfield com.sun.prism.impl.ManagedResource.employcount:I
            ifgt 2
         1: .line 170
            new java.lang.IllegalStateException
            dup
            ldc "Resource obsoleted too many times"
            invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 172
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            dup
            getfield com.sun.prism.impl.ManagedResource.employcount:I
            iconst_1
            isub
            putfield com.sun.prism.impl.ManagedResource.employcount:I
         3: .line 173
            return
        end local 0 // com.sun.prism.impl.ManagedResource this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    4     0  this  Lcom/sun/prism/impl/ManagedResource<TT;>;

  public final boolean wasMismatched();
    descriptor: ()Z
    flags: (0x0011) ACC_PUBLIC, ACC_FINAL
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // com.sun.prism.impl.ManagedResource this
         0: .line 176
            aload 0 /* this */
            getfield com.sun.prism.impl.ManagedResource.mismatchDetected:Z
            ireturn
        end local 0 // com.sun.prism.impl.ManagedResource this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lcom/sun/prism/impl/ManagedResource<TT;>;

  public final void setMismatched();
    descriptor: ()V
    flags: (0x0011) ACC_PUBLIC, ACC_FINAL
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // com.sun.prism.impl.ManagedResource this
         0: .line 180
            aload 0 /* this */
            iconst_1
            putfield com.sun.prism.impl.ManagedResource.mismatchDetected:Z
         1: .line 181
            return
        end local 0 // com.sun.prism.impl.ManagedResource this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lcom/sun/prism/impl/ManagedResource<TT;>;

  public final void bumpAge(int);
    descriptor: (I)V
    flags: (0x0011) ACC_PUBLIC, ACC_FINAL
    Code:
      stack=3, locals=3, args_size=2
        start local 0 // com.sun.prism.impl.ManagedResource this
        start local 1 // int forever
         0: .line 184
            aload 0 /* this */
            getfield com.sun.prism.impl.ManagedResource.age:I
            istore 2 /* a */
        start local 2 // int a
         1: .line 185
            iload 2 /* a */
            iload 1 /* forever */
            if_icmpge 3
         2: .line 186
            aload 0 /* this */
            iload 2 /* a */
            iconst_1
            iadd
            putfield com.sun.prism.impl.ManagedResource.age:I
         3: .line 188
      StackMap locals: int
      StackMap stack:
            return
        end local 2 // int a
        end local 1 // int forever
        end local 0 // com.sun.prism.impl.ManagedResource this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    4     0     this  Lcom/sun/prism/impl/ManagedResource<TT;>;
            0    4     1  forever  I
            1    4     2        a  I
    MethodParameters:
         Name  Flags
      forever  
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;Lcom/sun/prism/GraphicsResource;
SourceFile: "ManagedResource.java"