class jdk.jfr.internal.StringPool$SimpleStringIdPool
  minor version: 0
  major version: 59
  flags: flags: (0x0020) ACC_SUPER
  this_class: jdk.jfr.internal.StringPool$SimpleStringIdPool
  super_class: java.lang.Object
{
  private final java.util.concurrent.atomic.AtomicLong sidIdx;
    descriptor: Ljava/util/concurrent/atomic/AtomicLong;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

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

  private final java.util.concurrent.ConcurrentHashMap<java.lang.String, java.lang.Long> cache;
    descriptor: Ljava/util/concurrent/ConcurrentHashMap;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL
    Signature: Ljava/util/concurrent/ConcurrentHashMap<Ljava/lang/String;Ljava/lang/Long;>;

  private final int MAX_SIZE;
    descriptor: I
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL
    ConstantValue: 32768

  private final long MAX_SIZE_UTF16;
    descriptor: J
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL
    ConstantValue: 16777216

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

  private final java.lang.String[] preCache;
    descriptor: [Ljava/lang/String;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

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

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

  void <init>();
    descriptor: ()V
    flags: (0x0000) 
    Code:
      stack=5, locals=1, args_size=1
        start local 0 // jdk.jfr.internal.StringPool$SimpleStringIdPool this
         0: .line 71
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 52
            aload 0 /* this */
            new java.util.concurrent.atomic.AtomicLong
            dup
            invokespecial java.util.concurrent.atomic.AtomicLong.<init>:()V
            putfield jdk.jfr.internal.StringPool$SimpleStringIdPool.sidIdx:Ljava/util/concurrent/atomic/AtomicLong;
         2: .line 58
            aload 0 /* this */
            ldc 32768
            putfield jdk.jfr.internal.StringPool$SimpleStringIdPool.MAX_SIZE:I
         3: .line 60
            aload 0 /* this */
            ldc 16777216
            putfield jdk.jfr.internal.StringPool$SimpleStringIdPool.MAX_SIZE_UTF16:J
         4: .line 65
            aload 0 /* this */
            iconst_4
            anewarray java.lang.String
            dup
            iconst_0
            ldc ""
            aastore
            dup
            iconst_1
            ldc ""
            aastore
            dup
            iconst_2
            ldc ""
            aastore
            dup
            iconst_3
            ldc ""
            aastore
            putfield jdk.jfr.internal.StringPool$SimpleStringIdPool.preCache:[Ljava/lang/String;
         5: .line 67
            aload 0 /* this */
            iconst_0
            putfield jdk.jfr.internal.StringPool$SimpleStringIdPool.preCacheOld:I
         6: .line 72
            aload 0 /* this */
            new java.util.concurrent.ConcurrentHashMap
            dup
            ldc 32768
            ldc 0.75
            invokespecial java.util.concurrent.ConcurrentHashMap.<init>:(IF)V
            putfield jdk.jfr.internal.StringPool$SimpleStringIdPool.cache:Ljava/util/concurrent/ConcurrentHashMap;
         7: .line 73
            return
        end local 0 // jdk.jfr.internal.StringPool$SimpleStringIdPool this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    8     0  this  Ljdk/jfr/internal/StringPool$SimpleStringIdPool;

  void reset();
    descriptor: ()V
    flags: (0x0000) 
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // jdk.jfr.internal.StringPool$SimpleStringIdPool this
         0: .line 75
            aload 0 /* this */
            invokestatic jdk.jfr.internal.StringPool.getCurrentEpoch:()Z
            invokevirtual jdk.jfr.internal.StringPool$SimpleStringIdPool.reset:(Z)V
         1: .line 76
            return
        end local 0 // jdk.jfr.internal.StringPool$SimpleStringIdPool this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Ljdk/jfr/internal/StringPool$SimpleStringIdPool;

  private void reset(boolean);
    descriptor: (Z)V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=3, locals=2, args_size=2
        start local 0 // jdk.jfr.internal.StringPool$SimpleStringIdPool this
        start local 1 // boolean epoch
         0: .line 78
            aload 0 /* this */
            getfield jdk.jfr.internal.StringPool$SimpleStringIdPool.cache:Ljava/util/concurrent/ConcurrentHashMap;
            invokevirtual java.util.concurrent.ConcurrentHashMap.clear:()V
         1: .line 79
            aload 0 /* this */
            iload 1 /* epoch */
            putfield jdk.jfr.internal.StringPool$SimpleStringIdPool.poolEpoch:Z
         2: .line 80
            aload 0 /* this */
            lconst_0
            putfield jdk.jfr.internal.StringPool$SimpleStringIdPool.currentSizeUTF16:J
         3: .line 81
            return
        end local 1 // boolean epoch
        end local 0 // jdk.jfr.internal.StringPool$SimpleStringIdPool this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    4     0   this  Ljdk/jfr/internal/StringPool$SimpleStringIdPool;
            0    4     1  epoch  Z
    MethodParameters:
       Name  Flags
      epoch  

  private long addString(java.lang.String);
    descriptor: (Ljava/lang/String;)J
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=4, locals=4, args_size=2
        start local 0 // jdk.jfr.internal.StringPool$SimpleStringIdPool this
        start local 1 // java.lang.String s
         0: .line 83
            invokestatic jdk.jfr.internal.StringPool.getCurrentEpoch:()Z
            istore 2 /* currentEpoch */
        start local 2 // boolean currentEpoch
         1: .line 84
            aload 0 /* this */
            getfield jdk.jfr.internal.StringPool$SimpleStringIdPool.poolEpoch:Z
            iload 2 /* currentEpoch */
            if_icmpne 5
         2: .line 86
            aload 0 /* this */
            getfield jdk.jfr.internal.StringPool$SimpleStringIdPool.cache:Ljava/util/concurrent/ConcurrentHashMap;
            aload 1 /* s */
            invokevirtual java.util.concurrent.ConcurrentHashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast java.lang.Long
            astore 3 /* lsid */
        start local 3 // java.lang.Long lsid
         3: .line 87
            aload 3 /* lsid */
            ifnull 6
         4: .line 88
            aload 3 /* lsid */
            invokevirtual java.lang.Long.longValue:()J
            lreturn
        end local 3 // java.lang.Long lsid
         5: .line 92
      StackMap locals: int
      StackMap stack:
            aload 0 /* this */
            iload 2 /* currentEpoch */
            invokevirtual jdk.jfr.internal.StringPool$SimpleStringIdPool.reset:(Z)V
         6: .line 94
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 1 /* s */
            invokevirtual jdk.jfr.internal.StringPool$SimpleStringIdPool.preCache:(Ljava/lang/String;)Z
            ifne 8
         7: .line 96
            ldc -1
            lreturn
         8: .line 98
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.jfr.internal.StringPool$SimpleStringIdPool.cache:Ljava/util/concurrent/ConcurrentHashMap;
            invokevirtual java.util.concurrent.ConcurrentHashMap.size:()I
            ldc 32768
            if_icmpgt 9
            aload 0 /* this */
            getfield jdk.jfr.internal.StringPool$SimpleStringIdPool.currentSizeUTF16:J
            ldc 16777216
            lcmp
            ifle 10
         9: .line 100
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            iload 2 /* currentEpoch */
            invokevirtual jdk.jfr.internal.StringPool$SimpleStringIdPool.reset:(Z)V
        10: .line 102
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 1 /* s */
            invokevirtual jdk.jfr.internal.StringPool$SimpleStringIdPool.storeString:(Ljava/lang/String;)J
            lreturn
        end local 2 // boolean currentEpoch
        end local 1 // java.lang.String s
        end local 0 // jdk.jfr.internal.StringPool$SimpleStringIdPool this
      LocalVariableTable:
        Start  End  Slot          Name  Signature
            0   11     0          this  Ljdk/jfr/internal/StringPool$SimpleStringIdPool;
            0   11     1             s  Ljava/lang/String;
            1   11     2  currentEpoch  Z
            3    5     3          lsid  Ljava/lang/Long;
    MethodParameters:
      Name  Flags
      s     

  private long storeString(java.lang.String);
    descriptor: (Ljava/lang/String;)J
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=5, locals=6, args_size=2
        start local 0 // jdk.jfr.internal.StringPool$SimpleStringIdPool this
        start local 1 // java.lang.String s
         0: .line 106
            aload 0 /* this */
            getfield jdk.jfr.internal.StringPool$SimpleStringIdPool.sidIdx:Ljava/util/concurrent/atomic/AtomicLong;
            invokevirtual java.util.concurrent.atomic.AtomicLong.getAndIncrement:()J
            lstore 2 /* sid */
        start local 2 // long sid
         1: .line 108
            aload 0 /* this */
            getfield jdk.jfr.internal.StringPool$SimpleStringIdPool.cache:Ljava/util/concurrent/ConcurrentHashMap;
            aload 1 /* s */
            lload 2 /* sid */
            invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
            invokevirtual java.util.concurrent.ConcurrentHashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
            pop
         2: .line 110
            ldc Ljdk/jfr/internal/StringPool$SimpleStringIdPool;
            dup
            astore 5
            monitorenter
         3: .line 111
            aload 0 /* this */
            getfield jdk.jfr.internal.StringPool$SimpleStringIdPool.poolEpoch:Z
            lload 2 /* sid */
            aload 1 /* s */
            invokestatic jdk.jfr.internal.JVM.addStringConstant:(ZJLjava/lang/String;)Z
            istore 4 /* currentEpoch */
        start local 4 // boolean currentEpoch
         4: .line 112
            aload 0 /* this */
            dup
            getfield jdk.jfr.internal.StringPool$SimpleStringIdPool.currentSizeUTF16:J
            aload 1 /* s */
            invokevirtual java.lang.String.length:()I
            i2l
            ladd
            putfield jdk.jfr.internal.StringPool$SimpleStringIdPool.currentSizeUTF16:J
         5: .line 110
            aload 5
            monitorexit
         6: goto 9
        end local 4 // boolean currentEpoch
      StackMap locals: jdk.jfr.internal.StringPool$SimpleStringIdPool java.lang.String long top java.lang.Class
      StackMap stack: java.lang.Throwable
         7: aload 5
            monitorexit
         8: athrow
        start local 4 // boolean currentEpoch
         9: .line 115
      StackMap locals: jdk.jfr.internal.StringPool$SimpleStringIdPool java.lang.String long int
      StackMap stack:
            iload 4 /* currentEpoch */
            aload 0 /* this */
            getfield jdk.jfr.internal.StringPool$SimpleStringIdPool.poolEpoch:Z
            if_icmpne 10
            lload 2 /* sid */
            goto 11
      StackMap locals:
      StackMap stack:
        10: ldc -1
      StackMap locals:
      StackMap stack: long
        11: lreturn
        end local 4 // boolean currentEpoch
        end local 2 // long sid
        end local 1 // java.lang.String s
        end local 0 // jdk.jfr.internal.StringPool$SimpleStringIdPool this
      LocalVariableTable:
        Start  End  Slot          Name  Signature
            0   12     0          this  Ljdk/jfr/internal/StringPool$SimpleStringIdPool;
            0   12     1             s  Ljava/lang/String;
            1   12     2           sid  J
            4    7     4  currentEpoch  Z
            9   12     4  currentEpoch  Z
      Exception table:
        from    to  target  type
           3     6       7  any
           7     8       7  any
    MethodParameters:
      Name  Flags
      s     

  private boolean preCache(java.lang.String);
    descriptor: (Ljava/lang/String;)Z
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=3, locals=2, args_size=2
        start local 0 // jdk.jfr.internal.StringPool$SimpleStringIdPool this
        start local 1 // java.lang.String s
         0: .line 118
            aload 0 /* this */
            getfield jdk.jfr.internal.StringPool$SimpleStringIdPool.preCache:[Ljava/lang/String;
            iconst_0
            aaload
            aload 1 /* s */
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifeq 2
         1: .line 119
            iconst_1
            ireturn
         2: .line 121
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.jfr.internal.StringPool$SimpleStringIdPool.preCache:[Ljava/lang/String;
            iconst_1
            aaload
            aload 1 /* s */
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifeq 4
         3: .line 122
            iconst_1
            ireturn
         4: .line 124
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.jfr.internal.StringPool$SimpleStringIdPool.preCache:[Ljava/lang/String;
            iconst_2
            aaload
            aload 1 /* s */
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifeq 6
         5: .line 125
            iconst_1
            ireturn
         6: .line 127
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.jfr.internal.StringPool$SimpleStringIdPool.preCache:[Ljava/lang/String;
            iconst_3
            aaload
            aload 1 /* s */
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifeq 8
         7: .line 128
            iconst_1
            ireturn
         8: .line 130
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 0 /* this */
            getfield jdk.jfr.internal.StringPool$SimpleStringIdPool.preCacheOld:I
            iconst_1
            isub
            iconst_3
            iand
            putfield jdk.jfr.internal.StringPool$SimpleStringIdPool.preCacheOld:I
         9: .line 131
            aload 0 /* this */
            getfield jdk.jfr.internal.StringPool$SimpleStringIdPool.preCache:[Ljava/lang/String;
            aload 0 /* this */
            getfield jdk.jfr.internal.StringPool$SimpleStringIdPool.preCacheOld:I
            aload 1 /* s */
            aastore
        10: .line 132
            iconst_0
            ireturn
        end local 1 // java.lang.String s
        end local 0 // jdk.jfr.internal.StringPool$SimpleStringIdPool this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   11     0  this  Ljdk/jfr/internal/StringPool$SimpleStringIdPool;
            0   11     1     s  Ljava/lang/String;
    MethodParameters:
      Name  Flags
      s     
}
SourceFile: "StringPool.java"
NestHost: jdk.jfr.internal.StringPool
InnerClasses:
  private SimpleStringIdPool = jdk.jfr.internal.StringPool$SimpleStringIdPool of jdk.jfr.internal.StringPool