public class org.apache.catalina.webresources.Cache
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: org.apache.catalina.webresources.Cache
  super_class: java.lang.Object
{
  private static final org.apache.juli.logging.Log log;
    descriptor: Lorg/apache/juli/logging/Log;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

  protected static final org.apache.tomcat.util.res.StringManager sm;
    descriptor: Lorg/apache/tomcat/util/res/StringManager;
    flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL

  private static final long TARGET_FREE_PERCENT_GET;
    descriptor: J
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    ConstantValue: 5

  private static final long TARGET_FREE_PERCENT_BACKGROUND;
    descriptor: J
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    ConstantValue: 10

  private static final int OBJECT_MAX_SIZE_FACTOR;
    descriptor: I
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    ConstantValue: 20

  private final org.apache.catalina.webresources.StandardRoot root;
    descriptor: Lorg/apache/catalina/webresources/StandardRoot;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final java.util.concurrent.atomic.AtomicLong size;
    descriptor: Ljava/util/concurrent/atomic/AtomicLong;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private long ttl;
    descriptor: J
    flags: (0x0002) ACC_PRIVATE

  private long maxSize;
    descriptor: J
    flags: (0x0002) ACC_PRIVATE

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

  private java.util.concurrent.atomic.AtomicLong lookupCount;
    descriptor: Ljava/util/concurrent/atomic/AtomicLong;
    flags: (0x0002) ACC_PRIVATE

  private java.util.concurrent.atomic.AtomicLong hitCount;
    descriptor: Ljava/util/concurrent/atomic/AtomicLong;
    flags: (0x0002) ACC_PRIVATE

  private final java.util.concurrent.ConcurrentMap<java.lang.String, org.apache.catalina.webresources.CachedResource> resourceCache;
    descriptor: Ljava/util/concurrent/ConcurrentMap;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL
    Signature: Ljava/util/concurrent/ConcurrentMap<Ljava/lang/String;Lorg/apache/catalina/webresources/CachedResource;>;

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=1, locals=0, args_size=0
         0: .line 33
            ldc Lorg/apache/catalina/webresources/Cache;
            invokestatic org.apache.juli.logging.LogFactory.getLog:(Ljava/lang/Class;)Lorg/apache/juli/logging/Log;
            putstatic org.apache.catalina.webresources.Cache.log:Lorg/apache/juli/logging/Log;
         1: .line 34
            ldc Lorg/apache/catalina/webresources/Cache;
            invokestatic org.apache.tomcat.util.res.StringManager.getManager:(Ljava/lang/Class;)Lorg/apache/tomcat/util/res/StringManager;
            putstatic org.apache.catalina.webresources.Cache.sm:Lorg/apache/tomcat/util/res/StringManager;
         2: .line 40
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  public void <init>(org.apache.catalina.webresources.StandardRoot);
    descriptor: (Lorg/apache/catalina/webresources/StandardRoot;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=2, args_size=2
        start local 0 // org.apache.catalina.webresources.Cache this
        start local 1 // org.apache.catalina.webresources.StandardRoot root
         0: .line 55
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 43
            aload 0 /* this */
            new java.util.concurrent.atomic.AtomicLong
            dup
            lconst_0
            invokespecial java.util.concurrent.atomic.AtomicLong.<init>:(J)V
            putfield org.apache.catalina.webresources.Cache.size:Ljava/util/concurrent/atomic/AtomicLong;
         2: .line 45
            aload 0 /* this */
            ldc 5000
            putfield org.apache.catalina.webresources.Cache.ttl:J
         3: .line 46
            aload 0 /* this */
            ldc 10485760
            putfield org.apache.catalina.webresources.Cache.maxSize:J
         4: .line 47
            aload 0 /* this */
            aload 0 /* this */
            getfield org.apache.catalina.webresources.Cache.maxSize:J
            l2i
            bipush 20
            idiv
            putfield org.apache.catalina.webresources.Cache.objectMaxSize:I
         5: .line 49
            aload 0 /* this */
            new java.util.concurrent.atomic.AtomicLong
            dup
            lconst_0
            invokespecial java.util.concurrent.atomic.AtomicLong.<init>:(J)V
            putfield org.apache.catalina.webresources.Cache.lookupCount:Ljava/util/concurrent/atomic/AtomicLong;
         6: .line 50
            aload 0 /* this */
            new java.util.concurrent.atomic.AtomicLong
            dup
            lconst_0
            invokespecial java.util.concurrent.atomic.AtomicLong.<init>:(J)V
            putfield org.apache.catalina.webresources.Cache.hitCount:Ljava/util/concurrent/atomic/AtomicLong;
         7: .line 52
            aload 0 /* this */
         8: .line 53
            new java.util.concurrent.ConcurrentHashMap
            dup
            invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
            putfield org.apache.catalina.webresources.Cache.resourceCache:Ljava/util/concurrent/ConcurrentMap;
         9: .line 56
            aload 0 /* this */
            aload 1 /* root */
            putfield org.apache.catalina.webresources.Cache.root:Lorg/apache/catalina/webresources/StandardRoot;
        10: .line 57
            return
        end local 1 // org.apache.catalina.webresources.StandardRoot root
        end local 0 // org.apache.catalina.webresources.Cache this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   11     0  this  Lorg/apache/catalina/webresources/Cache;
            0   11     1  root  Lorg/apache/catalina/webresources/StandardRoot;
    MethodParameters:
      Name  Flags
      root  

  protected org.apache.catalina.WebResource getResource(java.lang.String, boolean);
    descriptor: (Ljava/lang/String;Z)Lorg/apache/catalina/WebResource;
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=9, locals=12, args_size=3
        start local 0 // org.apache.catalina.webresources.Cache this
        start local 1 // java.lang.String path
        start local 2 // boolean useClassLoaderResources
         0: .line 61
            aload 0 /* this */
            aload 1 /* path */
            invokevirtual org.apache.catalina.webresources.Cache.noCache:(Ljava/lang/String;)Z
            ifeq 2
         1: .line 62
            aload 0 /* this */
            getfield org.apache.catalina.webresources.Cache.root:Lorg/apache/catalina/webresources/StandardRoot;
            aload 1 /* path */
            iload 2 /* useClassLoaderResources */
            invokevirtual org.apache.catalina.webresources.StandardRoot.getResourceInternal:(Ljava/lang/String;Z)Lorg/apache/catalina/WebResource;
            areturn
         2: .line 65
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.apache.catalina.webresources.Cache.lookupCount:Ljava/util/concurrent/atomic/AtomicLong;
            invokevirtual java.util.concurrent.atomic.AtomicLong.incrementAndGet:()J
            pop2
         3: .line 67
            aload 0 /* this */
            getfield org.apache.catalina.webresources.Cache.resourceCache:Ljava/util/concurrent/ConcurrentMap;
            aload 1 /* path */
            invokeinterface java.util.concurrent.ConcurrentMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast org.apache.catalina.webresources.CachedResource
            astore 3 /* cacheEntry */
        start local 3 // org.apache.catalina.webresources.CachedResource cacheEntry
         4: .line 69
            aload 3 /* cacheEntry */
            ifnull 7
            aload 3 /* cacheEntry */
            iload 2 /* useClassLoaderResources */
            invokevirtual org.apache.catalina.webresources.CachedResource.validateResource:(Z)Z
            ifne 7
         5: .line 70
            aload 0 /* this */
            aload 1 /* path */
            invokevirtual org.apache.catalina.webresources.Cache.removeCacheEntry:(Ljava/lang/String;)V
         6: .line 71
            aconst_null
            astore 3 /* cacheEntry */
         7: .line 74
      StackMap locals: org.apache.catalina.webresources.CachedResource
      StackMap stack:
            aload 3 /* cacheEntry */
            ifnonnull 29
         8: .line 76
            aload 0 /* this */
            invokevirtual org.apache.catalina.webresources.Cache.getObjectMaxSizeBytes:()I
            istore 4 /* objectMaxSizeBytes */
        start local 4 // int objectMaxSizeBytes
         9: .line 77
            new org.apache.catalina.webresources.CachedResource
            dup
            aload 0 /* this */
            aload 0 /* this */
            getfield org.apache.catalina.webresources.Cache.root:Lorg/apache/catalina/webresources/StandardRoot;
            aload 1 /* path */
            aload 0 /* this */
            invokevirtual org.apache.catalina.webresources.Cache.getTtl:()J
        10: .line 78
            iload 4 /* objectMaxSizeBytes */
            iload 2 /* useClassLoaderResources */
        11: .line 77
            invokespecial org.apache.catalina.webresources.CachedResource.<init>:(Lorg/apache/catalina/webresources/Cache;Lorg/apache/catalina/webresources/StandardRoot;Ljava/lang/String;JIZ)V
            astore 5 /* newCacheEntry */
        start local 5 // org.apache.catalina.webresources.CachedResource newCacheEntry
        12: .line 82
            aload 0 /* this */
            getfield org.apache.catalina.webresources.Cache.resourceCache:Ljava/util/concurrent/ConcurrentMap;
            aload 1 /* path */
            aload 5 /* newCacheEntry */
            invokeinterface java.util.concurrent.ConcurrentMap.putIfAbsent:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
            checkcast org.apache.catalina.webresources.CachedResource
            astore 3 /* cacheEntry */
        13: .line 84
            aload 3 /* cacheEntry */
            ifnonnull 25
        14: .line 86
            aload 5 /* newCacheEntry */
            astore 3 /* cacheEntry */
        15: .line 87
            aload 3 /* cacheEntry */
            iload 2 /* useClassLoaderResources */
            invokevirtual org.apache.catalina.webresources.CachedResource.validateResource:(Z)Z
            pop
        16: .line 92
            aload 3 /* cacheEntry */
            invokevirtual org.apache.catalina.webresources.CachedResource.getSize:()J
            lstore 6 /* delta */
        start local 6 // long delta
        17: .line 93
            aload 0 /* this */
            getfield org.apache.catalina.webresources.Cache.size:Ljava/util/concurrent/atomic/AtomicLong;
            lload 6 /* delta */
            invokevirtual java.util.concurrent.atomic.AtomicLong.addAndGet:(J)J
            pop2
        18: .line 95
            aload 0 /* this */
            getfield org.apache.catalina.webresources.Cache.size:Ljava/util/concurrent/atomic/AtomicLong;
            invokevirtual java.util.concurrent.atomic.AtomicLong.get:()J
            aload 0 /* this */
            getfield org.apache.catalina.webresources.Cache.maxSize:J
            lcmp
            ifle 30
        19: .line 100
            aload 0 /* this */
            getfield org.apache.catalina.webresources.Cache.maxSize:J
            ldc 95
            lmul
            ldc 100
            ldiv
            lstore 8 /* targetSize */
        start local 8 // long targetSize
        20: .line 101
            aload 0 /* this */
            lload 8 /* targetSize */
            aload 0 /* this */
            getfield org.apache.catalina.webresources.Cache.resourceCache:Ljava/util/concurrent/ConcurrentMap;
            invokeinterface java.util.concurrent.ConcurrentMap.values:()Ljava/util/Collection;
            invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
            invokevirtual org.apache.catalina.webresources.Cache.evict:(JLjava/util/Iterator;)J
            lstore 10 /* newSize */
        start local 10 // long newSize
        21: .line 102
            lload 10 /* newSize */
            aload 0 /* this */
            getfield org.apache.catalina.webresources.Cache.maxSize:J
            lcmp
            ifle 30
        22: .line 105
            aload 0 /* this */
            aload 1 /* path */
            invokevirtual org.apache.catalina.webresources.Cache.removeCacheEntry:(Ljava/lang/String;)V
        23: .line 106
            getstatic org.apache.catalina.webresources.Cache.log:Lorg/apache/juli/logging/Log;
            getstatic org.apache.catalina.webresources.Cache.sm:Lorg/apache/tomcat/util/res/StringManager;
            ldc "cache.addFail"
            iconst_2
            anewarray java.lang.Object
            dup
            iconst_0
            aload 1 /* path */
            aastore
            dup
            iconst_1
            aload 0 /* this */
            getfield org.apache.catalina.webresources.Cache.root:Lorg/apache/catalina/webresources/StandardRoot;
            invokevirtual org.apache.catalina.webresources.StandardRoot.getContext:()Lorg/apache/catalina/Context;
            invokeinterface org.apache.catalina.Context.getName:()Ljava/lang/String;
            aastore
            invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
            invokeinterface org.apache.juli.logging.Log.warn:(Ljava/lang/Object;)V
        end local 10 // long newSize
        end local 8 // long targetSize
        end local 6 // long delta
        24: .line 109
            goto 30
        25: .line 111
      StackMap locals: int org.apache.catalina.webresources.CachedResource
      StackMap stack:
            aload 3 /* cacheEntry */
            invokevirtual org.apache.catalina.webresources.CachedResource.usesClassLoaderResources:()Z
            iload 2 /* useClassLoaderResources */
            if_icmpeq 27
        26: .line 127
            aload 5 /* newCacheEntry */
            astore 3 /* cacheEntry */
        27: .line 130
      StackMap locals:
      StackMap stack:
            aload 3 /* cacheEntry */
            iload 2 /* useClassLoaderResources */
            invokevirtual org.apache.catalina.webresources.CachedResource.validateResource:(Z)Z
            pop
        end local 5 // org.apache.catalina.webresources.CachedResource newCacheEntry
        end local 4 // int objectMaxSizeBytes
        28: .line 132
            goto 30
        29: .line 133
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.apache.catalina.webresources.Cache.hitCount:Ljava/util/concurrent/atomic/AtomicLong;
            invokevirtual java.util.concurrent.atomic.AtomicLong.incrementAndGet:()J
            pop2
        30: .line 136
      StackMap locals:
      StackMap stack:
            aload 3 /* cacheEntry */
            areturn
        end local 3 // org.apache.catalina.webresources.CachedResource cacheEntry
        end local 2 // boolean useClassLoaderResources
        end local 1 // java.lang.String path
        end local 0 // org.apache.catalina.webresources.Cache this
      LocalVariableTable:
        Start  End  Slot                     Name  Signature
            0   31     0                     this  Lorg/apache/catalina/webresources/Cache;
            0   31     1                     path  Ljava/lang/String;
            0   31     2  useClassLoaderResources  Z
            4   31     3               cacheEntry  Lorg/apache/catalina/webresources/CachedResource;
            9   28     4       objectMaxSizeBytes  I
           12   28     5            newCacheEntry  Lorg/apache/catalina/webresources/CachedResource;
           17   24     6                    delta  J
           20   24     8               targetSize  J
           21   24    10                  newSize  J
    MethodParameters:
                         Name  Flags
      path                     
      useClassLoaderResources  

  protected org.apache.catalina.WebResource[] getResources(java.lang.String, boolean);
    descriptor: (Ljava/lang/String;Z)[Lorg/apache/catalina/WebResource;
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=9, locals=12, args_size=3
        start local 0 // org.apache.catalina.webresources.Cache this
        start local 1 // java.lang.String path
        start local 2 // boolean useClassLoaderResources
         0: .line 140
            aload 0 /* this */
            getfield org.apache.catalina.webresources.Cache.lookupCount:Ljava/util/concurrent/atomic/AtomicLong;
            invokevirtual java.util.concurrent.atomic.AtomicLong.incrementAndGet:()J
            pop2
         1: .line 145
            aload 0 /* this */
            getfield org.apache.catalina.webresources.Cache.resourceCache:Ljava/util/concurrent/ConcurrentMap;
            aload 1 /* path */
            invokeinterface java.util.concurrent.ConcurrentMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast org.apache.catalina.webresources.CachedResource
            astore 3 /* cacheEntry */
        start local 3 // org.apache.catalina.webresources.CachedResource cacheEntry
         2: .line 147
            aload 3 /* cacheEntry */
            ifnull 5
            aload 3 /* cacheEntry */
            iload 2 /* useClassLoaderResources */
            invokevirtual org.apache.catalina.webresources.CachedResource.validateResources:(Z)Z
            ifne 5
         3: .line 148
            aload 0 /* this */
            aload 1 /* path */
            invokevirtual org.apache.catalina.webresources.Cache.removeCacheEntry:(Ljava/lang/String;)V
         4: .line 149
            aconst_null
            astore 3 /* cacheEntry */
         5: .line 152
      StackMap locals: org.apache.catalina.webresources.CachedResource
      StackMap stack:
            aload 3 /* cacheEntry */
            ifnonnull 25
         6: .line 154
            aload 0 /* this */
            invokevirtual org.apache.catalina.webresources.Cache.getObjectMaxSizeBytes:()I
            istore 4 /* objectMaxSizeBytes */
        start local 4 // int objectMaxSizeBytes
         7: .line 155
            new org.apache.catalina.webresources.CachedResource
            dup
            aload 0 /* this */
            aload 0 /* this */
            getfield org.apache.catalina.webresources.Cache.root:Lorg/apache/catalina/webresources/StandardRoot;
            aload 1 /* path */
            aload 0 /* this */
            invokevirtual org.apache.catalina.webresources.Cache.getTtl:()J
         8: .line 156
            iload 4 /* objectMaxSizeBytes */
            iload 2 /* useClassLoaderResources */
         9: .line 155
            invokespecial org.apache.catalina.webresources.CachedResource.<init>:(Lorg/apache/catalina/webresources/Cache;Lorg/apache/catalina/webresources/StandardRoot;Ljava/lang/String;JIZ)V
            astore 5 /* newCacheEntry */
        start local 5 // org.apache.catalina.webresources.CachedResource newCacheEntry
        10: .line 160
            aload 0 /* this */
            getfield org.apache.catalina.webresources.Cache.resourceCache:Ljava/util/concurrent/ConcurrentMap;
            aload 1 /* path */
            aload 5 /* newCacheEntry */
            invokeinterface java.util.concurrent.ConcurrentMap.putIfAbsent:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
            checkcast org.apache.catalina.webresources.CachedResource
            astore 3 /* cacheEntry */
        11: .line 162
            aload 3 /* cacheEntry */
            ifnonnull 23
        12: .line 164
            aload 5 /* newCacheEntry */
            astore 3 /* cacheEntry */
        13: .line 165
            aload 3 /* cacheEntry */
            iload 2 /* useClassLoaderResources */
            invokevirtual org.apache.catalina.webresources.CachedResource.validateResources:(Z)Z
            pop
        14: .line 168
            aload 3 /* cacheEntry */
            invokevirtual org.apache.catalina.webresources.CachedResource.getSize:()J
            lstore 6 /* delta */
        start local 6 // long delta
        15: .line 169
            aload 0 /* this */
            getfield org.apache.catalina.webresources.Cache.size:Ljava/util/concurrent/atomic/AtomicLong;
            lload 6 /* delta */
            invokevirtual java.util.concurrent.atomic.AtomicLong.addAndGet:(J)J
            pop2
        16: .line 171
            aload 0 /* this */
            getfield org.apache.catalina.webresources.Cache.size:Ljava/util/concurrent/atomic/AtomicLong;
            invokevirtual java.util.concurrent.atomic.AtomicLong.get:()J
            aload 0 /* this */
            getfield org.apache.catalina.webresources.Cache.maxSize:J
            lcmp
            ifle 26
        17: .line 176
            aload 0 /* this */
            getfield org.apache.catalina.webresources.Cache.maxSize:J
            ldc 95
            lmul
            ldc 100
            ldiv
            lstore 8 /* targetSize */
        start local 8 // long targetSize
        18: .line 177
            aload 0 /* this */
            lload 8 /* targetSize */
            aload 0 /* this */
            getfield org.apache.catalina.webresources.Cache.resourceCache:Ljava/util/concurrent/ConcurrentMap;
            invokeinterface java.util.concurrent.ConcurrentMap.values:()Ljava/util/Collection;
            invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
            invokevirtual org.apache.catalina.webresources.Cache.evict:(JLjava/util/Iterator;)J
            lstore 10 /* newSize */
        start local 10 // long newSize
        19: .line 178
            lload 10 /* newSize */
            aload 0 /* this */
            getfield org.apache.catalina.webresources.Cache.maxSize:J
            lcmp
            ifle 26
        20: .line 181
            aload 0 /* this */
            aload 1 /* path */
            invokevirtual org.apache.catalina.webresources.Cache.removeCacheEntry:(Ljava/lang/String;)V
        21: .line 182
            getstatic org.apache.catalina.webresources.Cache.log:Lorg/apache/juli/logging/Log;
            getstatic org.apache.catalina.webresources.Cache.sm:Lorg/apache/tomcat/util/res/StringManager;
            ldc "cache.addFail"
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            aload 1 /* path */
            aastore
            invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
            invokeinterface org.apache.juli.logging.Log.warn:(Ljava/lang/Object;)V
        end local 10 // long newSize
        end local 8 // long targetSize
        end local 6 // long delta
        22: .line 185
            goto 26
        23: .line 188
      StackMap locals: int org.apache.catalina.webresources.CachedResource
      StackMap stack:
            aload 3 /* cacheEntry */
            iload 2 /* useClassLoaderResources */
            invokevirtual org.apache.catalina.webresources.CachedResource.validateResources:(Z)Z
            pop
        end local 5 // org.apache.catalina.webresources.CachedResource newCacheEntry
        end local 4 // int objectMaxSizeBytes
        24: .line 190
            goto 26
        25: .line 191
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.apache.catalina.webresources.Cache.hitCount:Ljava/util/concurrent/atomic/AtomicLong;
            invokevirtual java.util.concurrent.atomic.AtomicLong.incrementAndGet:()J
            pop2
        26: .line 194
      StackMap locals:
      StackMap stack:
            aload 3 /* cacheEntry */
            invokevirtual org.apache.catalina.webresources.CachedResource.getWebResources:()[Lorg/apache/catalina/WebResource;
            areturn
        end local 3 // org.apache.catalina.webresources.CachedResource cacheEntry
        end local 2 // boolean useClassLoaderResources
        end local 1 // java.lang.String path
        end local 0 // org.apache.catalina.webresources.Cache this
      LocalVariableTable:
        Start  End  Slot                     Name  Signature
            0   27     0                     this  Lorg/apache/catalina/webresources/Cache;
            0   27     1                     path  Ljava/lang/String;
            0   27     2  useClassLoaderResources  Z
            2   27     3               cacheEntry  Lorg/apache/catalina/webresources/CachedResource;
            7   24     4       objectMaxSizeBytes  I
           10   24     5            newCacheEntry  Lorg/apache/catalina/webresources/CachedResource;
           15   22     6                    delta  J
           18   22     8               targetSize  J
           19   22    10                  newSize  J
    MethodParameters:
                         Name  Flags
      path                     
      useClassLoaderResources  

  protected void backgroundProcess();
    descriptor: ()V
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=10, locals=7, args_size=1
        start local 0 // org.apache.catalina.webresources.Cache this
         0: .line 202
            new java.util.TreeSet
            dup
            new org.apache.catalina.webresources.Cache$EvictionOrder
            dup
            invokespecial org.apache.catalina.webresources.Cache$EvictionOrder.<init>:()V
            invokespecial java.util.TreeSet.<init>:(Ljava/util/Comparator;)V
         1: .line 201
            astore 1 /* orderedResources */
        start local 1 // java.util.TreeSet orderedResources
         2: .line 203
            aload 1 /* orderedResources */
            aload 0 /* this */
            getfield org.apache.catalina.webresources.Cache.resourceCache:Ljava/util/concurrent/ConcurrentMap;
            invokeinterface java.util.concurrent.ConcurrentMap.values:()Ljava/util/Collection;
            invokevirtual java.util.TreeSet.addAll:(Ljava/util/Collection;)Z
            pop
         3: .line 205
            aload 1 /* orderedResources */
            invokevirtual java.util.TreeSet.iterator:()Ljava/util/Iterator;
            astore 2 /* iter */
        start local 2 // java.util.Iterator iter
         4: .line 208
            aload 0 /* this */
            getfield org.apache.catalina.webresources.Cache.maxSize:J
            ldc 90
            lmul
            ldc 100
            ldiv
         5: .line 207
            lstore 3 /* targetSize */
        start local 3 // long targetSize
         6: .line 209
            aload 0 /* this */
            lload 3 /* targetSize */
            aload 2 /* iter */
            invokevirtual org.apache.catalina.webresources.Cache.evict:(JLjava/util/Iterator;)J
            lstore 5 /* newSize */
        start local 5 // long newSize
         7: .line 211
            lload 5 /* newSize */
            lload 3 /* targetSize */
            lcmp
            ifle 13
         8: .line 212
            getstatic org.apache.catalina.webresources.Cache.log:Lorg/apache/juli/logging/Log;
            getstatic org.apache.catalina.webresources.Cache.sm:Lorg/apache/tomcat/util/res/StringManager;
            ldc "cache.backgroundEvictFail"
            iconst_3
            anewarray java.lang.Object
            dup
            iconst_0
         9: .line 213
            ldc 10
            invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
            aastore
            dup
            iconst_1
        10: .line 214
            aload 0 /* this */
            getfield org.apache.catalina.webresources.Cache.root:Lorg/apache/catalina/webresources/StandardRoot;
            invokevirtual org.apache.catalina.webresources.StandardRoot.getContext:()Lorg/apache/catalina/Context;
            invokeinterface org.apache.catalina.Context.getName:()Ljava/lang/String;
            aastore
            dup
            iconst_2
        11: .line 215
            lload 5 /* newSize */
            ldc 1024
            ldiv
            invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
            aastore
        12: .line 212
            invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
            invokeinterface org.apache.juli.logging.Log.info:(Ljava/lang/Object;)V
        13: .line 217
      StackMap locals: org.apache.catalina.webresources.Cache java.util.TreeSet java.util.Iterator long long
      StackMap stack:
            return
        end local 5 // long newSize
        end local 3 // long targetSize
        end local 2 // java.util.Iterator iter
        end local 1 // java.util.TreeSet orderedResources
        end local 0 // org.apache.catalina.webresources.Cache this
      LocalVariableTable:
        Start  End  Slot              Name  Signature
            0   14     0              this  Lorg/apache/catalina/webresources/Cache;
            2   14     1  orderedResources  Ljava/util/TreeSet<Lorg/apache/catalina/webresources/CachedResource;>;
            4   14     2              iter  Ljava/util/Iterator<Lorg/apache/catalina/webresources/CachedResource;>;
            6   14     3        targetSize  J
            7   14     5           newSize  J

  private boolean noCache(java.lang.String);
    descriptor: (Ljava/lang/String;)Z
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // org.apache.catalina.webresources.Cache this
        start local 1 // java.lang.String path
         0: .line 222
            aload 1 /* path */
            ldc ".class"
            invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
            ifeq 2
         1: .line 223
            aload 1 /* path */
            ldc "/WEB-INF/classes/"
            invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
            ifne 3
            aload 1 /* path */
            ldc "/WEB-INF/lib/"
            invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
            ifne 3
         2: .line 225
      StackMap locals:
      StackMap stack:
            aload 1 /* path */
            ldc "/WEB-INF/lib/"
            invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
            ifeq 4
            aload 1 /* path */
            ldc ".jar"
            invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
            ifeq 4
         3: .line 226
      StackMap locals:
      StackMap stack:
            iconst_1
            ireturn
         4: .line 228
      StackMap locals:
      StackMap stack:
            iconst_0
            ireturn
        end local 1 // java.lang.String path
        end local 0 // org.apache.catalina.webresources.Cache this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    5     0  this  Lorg/apache/catalina/webresources/Cache;
            0    5     1  path  Ljava/lang/String;
    MethodParameters:
      Name  Flags
      path  

  private long evict(long, java.util.Iterator<org.apache.catalina.webresources.CachedResource>);
    descriptor: (JLjava/util/Iterator;)J
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=4, locals=9, args_size=3
        start local 0 // org.apache.catalina.webresources.Cache this
        start local 1 // long targetSize
        start local 3 // java.util.Iterator iter
         0: .line 233
            invokestatic java.lang.System.currentTimeMillis:()J
            lstore 4 /* now */
        start local 4 // long now
         1: .line 235
            aload 0 /* this */
            getfield org.apache.catalina.webresources.Cache.size:Ljava/util/concurrent/atomic/AtomicLong;
            invokevirtual java.util.concurrent.atomic.AtomicLong.get:()J
            lstore 6 /* newSize */
        start local 6 // long newSize
         2: .line 237
            goto 8
         3: .line 238
      StackMap locals: long long
      StackMap stack:
            aload 3 /* iter */
            invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
            checkcast org.apache.catalina.webresources.CachedResource
            astore 8 /* resource */
        start local 8 // org.apache.catalina.webresources.CachedResource resource
         4: .line 241
            aload 8 /* resource */
            invokevirtual org.apache.catalina.webresources.CachedResource.getNextCheck:()J
            lload 4 /* now */
            lcmp
            ifle 6
         5: .line 242
            goto 8
         6: .line 246
      StackMap locals: org.apache.catalina.webresources.CachedResource
      StackMap stack:
            aload 0 /* this */
            aload 8 /* resource */
            invokevirtual org.apache.catalina.webresources.CachedResource.getWebappPath:()Ljava/lang/String;
            invokevirtual org.apache.catalina.webresources.Cache.removeCacheEntry:(Ljava/lang/String;)V
         7: .line 248
            aload 0 /* this */
            getfield org.apache.catalina.webresources.Cache.size:Ljava/util/concurrent/atomic/AtomicLong;
            invokevirtual java.util.concurrent.atomic.AtomicLong.get:()J
            lstore 6 /* newSize */
        end local 8 // org.apache.catalina.webresources.CachedResource resource
         8: .line 237
      StackMap locals:
      StackMap stack:
            lload 6 /* newSize */
            lload 1 /* targetSize */
            lcmp
            ifle 9
            aload 3 /* iter */
            invokeinterface java.util.Iterator.hasNext:()Z
            ifne 3
         9: .line 251
      StackMap locals:
      StackMap stack:
            lload 6 /* newSize */
            lreturn
        end local 6 // long newSize
        end local 4 // long now
        end local 3 // java.util.Iterator iter
        end local 1 // long targetSize
        end local 0 // org.apache.catalina.webresources.Cache this
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0   10     0        this  Lorg/apache/catalina/webresources/Cache;
            0   10     1  targetSize  J
            0   10     3        iter  Ljava/util/Iterator<Lorg/apache/catalina/webresources/CachedResource;>;
            1   10     4         now  J
            2   10     6     newSize  J
            4    8     8    resource  Lorg/apache/catalina/webresources/CachedResource;
    Signature: (JLjava/util/Iterator<Lorg/apache/catalina/webresources/CachedResource;>;)J
    MethodParameters:
            Name  Flags
      targetSize  
      iter        

  void removeCacheEntry(java.lang.String);
    descriptor: (Ljava/lang/String;)V
    flags: (0x0000) 
    Code:
      stack=3, locals=5, args_size=2
        start local 0 // org.apache.catalina.webresources.Cache this
        start local 1 // java.lang.String path
         0: .line 257
            aload 0 /* this */
            getfield org.apache.catalina.webresources.Cache.resourceCache:Ljava/util/concurrent/ConcurrentMap;
            aload 1 /* path */
            invokeinterface java.util.concurrent.ConcurrentMap.remove:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast org.apache.catalina.webresources.CachedResource
            astore 2 /* cachedResource */
        start local 2 // org.apache.catalina.webresources.CachedResource cachedResource
         1: .line 258
            aload 2 /* cachedResource */
            ifnull 4
         2: .line 259
            aload 2 /* cachedResource */
            invokevirtual org.apache.catalina.webresources.CachedResource.getSize:()J
            lstore 3 /* delta */
        start local 3 // long delta
         3: .line 260
            aload 0 /* this */
            getfield org.apache.catalina.webresources.Cache.size:Ljava/util/concurrent/atomic/AtomicLong;
            lload 3 /* delta */
            lneg
            invokevirtual java.util.concurrent.atomic.AtomicLong.addAndGet:(J)J
            pop2
        end local 3 // long delta
         4: .line 262
      StackMap locals: org.apache.catalina.webresources.CachedResource
      StackMap stack:
            return
        end local 2 // org.apache.catalina.webresources.CachedResource cachedResource
        end local 1 // java.lang.String path
        end local 0 // org.apache.catalina.webresources.Cache this
      LocalVariableTable:
        Start  End  Slot            Name  Signature
            0    5     0            this  Lorg/apache/catalina/webresources/Cache;
            0    5     1            path  Ljava/lang/String;
            1    5     2  cachedResource  Lorg/apache/catalina/webresources/CachedResource;
            3    4     3           delta  J
    MethodParameters:
      Name  Flags
      path  

  public long getTtl();
    descriptor: ()J
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.apache.catalina.webresources.Cache this
         0: .line 265
            aload 0 /* this */
            getfield org.apache.catalina.webresources.Cache.ttl:J
            lreturn
        end local 0 // org.apache.catalina.webresources.Cache this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/apache/catalina/webresources/Cache;

  public void setTtl(long);
    descriptor: (J)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=3, args_size=2
        start local 0 // org.apache.catalina.webresources.Cache this
        start local 1 // long ttl
         0: .line 269
            aload 0 /* this */
            lload 1 /* ttl */
            putfield org.apache.catalina.webresources.Cache.ttl:J
         1: .line 270
            return
        end local 1 // long ttl
        end local 0 // org.apache.catalina.webresources.Cache this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lorg/apache/catalina/webresources/Cache;
            0    2     1   ttl  J
    MethodParameters:
      Name  Flags
      ttl   

  public long getMaxSize();
    descriptor: ()J
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=1, args_size=1
        start local 0 // org.apache.catalina.webresources.Cache this
         0: .line 274
            aload 0 /* this */
            getfield org.apache.catalina.webresources.Cache.maxSize:J
            ldc 1024
            ldiv
            lreturn
        end local 0 // org.apache.catalina.webresources.Cache this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/apache/catalina/webresources/Cache;

  public void setMaxSize(long);
    descriptor: (J)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=3, args_size=2
        start local 0 // org.apache.catalina.webresources.Cache this
        start local 1 // long maxSize
         0: .line 279
            aload 0 /* this */
            lload 1 /* maxSize */
            ldc 1024
            lmul
            putfield org.apache.catalina.webresources.Cache.maxSize:J
         1: .line 280
            return
        end local 1 // long maxSize
        end local 0 // org.apache.catalina.webresources.Cache this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    2     0     this  Lorg/apache/catalina/webresources/Cache;
            0    2     1  maxSize  J
    MethodParameters:
         Name  Flags
      maxSize  

  public long getLookupCount();
    descriptor: ()J
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.apache.catalina.webresources.Cache this
         0: .line 283
            aload 0 /* this */
            getfield org.apache.catalina.webresources.Cache.lookupCount:Ljava/util/concurrent/atomic/AtomicLong;
            invokevirtual java.util.concurrent.atomic.AtomicLong.get:()J
            lreturn
        end local 0 // org.apache.catalina.webresources.Cache this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/apache/catalina/webresources/Cache;

  public long getHitCount();
    descriptor: ()J
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.apache.catalina.webresources.Cache this
         0: .line 287
            aload 0 /* this */
            getfield org.apache.catalina.webresources.Cache.hitCount:Ljava/util/concurrent/atomic/AtomicLong;
            invokevirtual java.util.concurrent.atomic.AtomicLong.get:()J
            lreturn
        end local 0 // org.apache.catalina.webresources.Cache this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/apache/catalina/webresources/Cache;

  public void setObjectMaxSize(int);
    descriptor: (I)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=7, locals=2, args_size=2
        start local 0 // org.apache.catalina.webresources.Cache this
        start local 1 // int objectMaxSize
         0: .line 291
            iload 1 /* objectMaxSize */
            i2l
            ldc 1024
            lmul
            ldc 2147483647
            lcmp
            ifle 3
         1: .line 292
            getstatic org.apache.catalina.webresources.Cache.log:Lorg/apache/juli/logging/Log;
            getstatic org.apache.catalina.webresources.Cache.sm:Lorg/apache/tomcat/util/res/StringManager;
            ldc "cache.objectMaxSizeTooBigBytes"
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            iload 1 /* objectMaxSize */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
            invokeinterface org.apache.juli.logging.Log.warn:(Ljava/lang/Object;)V
         2: .line 293
            aload 0 /* this */
            ldc 2147483647
            putfield org.apache.catalina.webresources.Cache.objectMaxSize:I
         3: .line 296
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            iload 1 /* objectMaxSize */
            sipush 1024
            imul
            putfield org.apache.catalina.webresources.Cache.objectMaxSize:I
         4: .line 297
            return
        end local 1 // int objectMaxSize
        end local 0 // org.apache.catalina.webresources.Cache this
      LocalVariableTable:
        Start  End  Slot           Name  Signature
            0    5     0           this  Lorg/apache/catalina/webresources/Cache;
            0    5     1  objectMaxSize  I
    MethodParameters:
               Name  Flags
      objectMaxSize  

  public int getObjectMaxSize();
    descriptor: ()I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.apache.catalina.webresources.Cache this
         0: .line 301
            aload 0 /* this */
            getfield org.apache.catalina.webresources.Cache.objectMaxSize:I
            sipush 1024
            idiv
            ireturn
        end local 0 // org.apache.catalina.webresources.Cache this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/apache/catalina/webresources/Cache;

  public int getObjectMaxSizeBytes();
    descriptor: ()I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.apache.catalina.webresources.Cache this
         0: .line 305
            aload 0 /* this */
            getfield org.apache.catalina.webresources.Cache.objectMaxSize:I
            ireturn
        end local 0 // org.apache.catalina.webresources.Cache this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/apache/catalina/webresources/Cache;

  void enforceObjectMaxSizeLimit();
    descriptor: ()V
    flags: (0x0000) 
    Code:
      stack=8, locals=3, args_size=1
        start local 0 // org.apache.catalina.webresources.Cache this
         0: .line 309
            aload 0 /* this */
            getfield org.apache.catalina.webresources.Cache.maxSize:J
            ldc 20
            ldiv
            lstore 1 /* limit */
        start local 1 // long limit
         1: .line 310
            lload 1 /* limit */
            ldc 2147483647
            lcmp
            ifle 3
         2: .line 311
            return
         3: .line 313
      StackMap locals: long
      StackMap stack:
            aload 0 /* this */
            getfield org.apache.catalina.webresources.Cache.objectMaxSize:I
            i2l
            lload 1 /* limit */
            lcmp
            ifle 8
         4: .line 314
            getstatic org.apache.catalina.webresources.Cache.log:Lorg/apache/juli/logging/Log;
            getstatic org.apache.catalina.webresources.Cache.sm:Lorg/apache/tomcat/util/res/StringManager;
            ldc "cache.objectMaxSizeTooBig"
            iconst_2
            anewarray java.lang.Object
            dup
            iconst_0
         5: .line 315
            aload 0 /* this */
            getfield org.apache.catalina.webresources.Cache.objectMaxSize:I
            sipush 1024
            idiv
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            dup
            iconst_1
            lload 1 /* limit */
            l2i
            sipush 1024
            idiv
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
         6: .line 314
            invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
            invokeinterface org.apache.juli.logging.Log.warn:(Ljava/lang/Object;)V
         7: .line 316
            aload 0 /* this */
            lload 1 /* limit */
            l2i
            putfield org.apache.catalina.webresources.Cache.objectMaxSize:I
         8: .line 318
      StackMap locals:
      StackMap stack:
            return
        end local 1 // long limit
        end local 0 // org.apache.catalina.webresources.Cache this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    9     0   this  Lorg/apache/catalina/webresources/Cache;
            1    9     1  limit  J

  public void clear();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // org.apache.catalina.webresources.Cache this
         0: .line 321
            aload 0 /* this */
            getfield org.apache.catalina.webresources.Cache.resourceCache:Ljava/util/concurrent/ConcurrentMap;
            invokeinterface java.util.concurrent.ConcurrentMap.clear:()V
         1: .line 322
            aload 0 /* this */
            getfield org.apache.catalina.webresources.Cache.size:Ljava/util/concurrent/atomic/AtomicLong;
            lconst_0
            invokevirtual java.util.concurrent.atomic.AtomicLong.set:(J)V
         2: .line 323
            return
        end local 0 // org.apache.catalina.webresources.Cache this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lorg/apache/catalina/webresources/Cache;

  public long getSize();
    descriptor: ()J
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=1, args_size=1
        start local 0 // org.apache.catalina.webresources.Cache this
         0: .line 326
            aload 0 /* this */
            getfield org.apache.catalina.webresources.Cache.size:Ljava/util/concurrent/atomic/AtomicLong;
            invokevirtual java.util.concurrent.atomic.AtomicLong.get:()J
            ldc 1024
            ldiv
            lreturn
        end local 0 // org.apache.catalina.webresources.Cache this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/apache/catalina/webresources/Cache;
}
SourceFile: "Cache.java"
NestMembers:
  org.apache.catalina.webresources.Cache$EvictionOrder
InnerClasses:
  private EvictionOrder = org.apache.catalina.webresources.Cache$EvictionOrder of org.apache.catalina.webresources.Cache