public final class org.glassfish.grizzly.http.util.StringCache
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.glassfish.grizzly.http.util.StringCache
super_class: java.lang.Object
{
private static final java.util.logging.Logger logger;
descriptor: Ljava/util/logging/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static boolean byteEnabled;
descriptor: Z
flags: (0x0008) ACC_STATIC
static boolean charEnabled;
descriptor: Z
flags: (0x0008) ACC_STATIC
static int trainThreshold;
descriptor: I
flags: (0x0008) ACC_STATIC
static int cacheSize;
descriptor: I
flags: (0x0008) ACC_STATIC
static final java.util.HashMap<org.glassfish.grizzly.http.util.StringCache$ByteEntry, int[]> bcStats;
descriptor: Ljava/util/HashMap;
flags: (0x0018) ACC_STATIC, ACC_FINAL
Signature: Ljava/util/HashMap<Lorg/glassfish/grizzly/http/util/StringCache$ByteEntry;[I>;
static int bcCount;
descriptor: I
flags: (0x0008) ACC_STATIC
static org.glassfish.grizzly.http.util.StringCache$ByteEntry[] bcCache;
descriptor: [Lorg/glassfish/grizzly/http/util/StringCache$ByteEntry;
flags: (0x0008) ACC_STATIC
static final java.util.HashMap<org.glassfish.grizzly.http.util.StringCache$CharEntry, int[]> ccStats;
descriptor: Ljava/util/HashMap;
flags: (0x0018) ACC_STATIC, ACC_FINAL
Signature: Ljava/util/HashMap<Lorg/glassfish/grizzly/http/util/StringCache$CharEntry;[I>;
static int ccCount;
descriptor: I
flags: (0x0008) ACC_STATIC
static org.glassfish.grizzly.http.util.StringCache$CharEntry[] ccCache;
descriptor: [Lorg/glassfish/grizzly/http/util/StringCache$CharEntry;
flags: (0x0008) ACC_STATIC
static int accessCount;
descriptor: I
flags: (0x0008) ACC_STATIC
static int hitCount;
descriptor: I
flags: (0x0008) ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: ldc Lorg/glassfish/grizzly/http/util/StringCache;
invokestatic org.glassfish.grizzly.Grizzly.logger:(Ljava/lang/Class;)Ljava/util/logging/Logger;
putstatic org.glassfish.grizzly.http.util.StringCache.logger:Ljava/util/logging/Logger;
1: ldc "true"
ldc "tomcat.util.buf.StringCache.byte.enabled"
ldc "false"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
putstatic org.glassfish.grizzly.http.util.StringCache.byteEnabled:Z
2: ldc "true"
ldc "tomcat.util.buf.StringCache.char.enabled"
ldc "false"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
putstatic org.glassfish.grizzly.http.util.StringCache.charEnabled:Z
3: ldc "tomcat.util.buf.StringCache.trainThreshold"
ldc "20000"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
putstatic org.glassfish.grizzly.http.util.StringCache.trainThreshold:I
4: ldc "tomcat.util.buf.StringCache.cacheSize"
ldc "200"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
putstatic org.glassfish.grizzly.http.util.StringCache.cacheSize:I
5: new java.util.HashMap
dup
getstatic org.glassfish.grizzly.http.util.StringCache.cacheSize:I
invokespecial java.util.HashMap.<init>:(I)V
putstatic org.glassfish.grizzly.http.util.StringCache.bcStats:Ljava/util/HashMap;
6: iconst_0
putstatic org.glassfish.grizzly.http.util.StringCache.bcCount:I
7: aconst_null
putstatic org.glassfish.grizzly.http.util.StringCache.bcCache:[Lorg/glassfish/grizzly/http/util/StringCache$ByteEntry;
8: new java.util.HashMap
dup
getstatic org.glassfish.grizzly.http.util.StringCache.cacheSize:I
invokespecial java.util.HashMap.<init>:(I)V
putstatic org.glassfish.grizzly.http.util.StringCache.ccStats:Ljava/util/HashMap;
9: iconst_0
putstatic org.glassfish.grizzly.http.util.StringCache.ccCount:I
10: aconst_null
putstatic org.glassfish.grizzly.http.util.StringCache.ccCache:[Lorg/glassfish/grizzly/http/util/StringCache$CharEntry;
11: iconst_0
putstatic org.glassfish.grizzly.http.util.StringCache.accessCount:I
12: iconst_0
putstatic org.glassfish.grizzly.http.util.StringCache.hitCount:I
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/http/util/StringCache;
public static int getCacheSize();
descriptor: ()I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic org.glassfish.grizzly.http.util.StringCache.cacheSize:I
ireturn
LocalVariableTable:
Start End Slot Name Signature
public static void setCacheSize(int);
descriptor: (I)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iload 0
putstatic org.glassfish.grizzly.http.util.StringCache.cacheSize:I
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 cacheSize I
MethodParameters:
Name Flags
cacheSize
public static boolean getByteEnabled();
descriptor: ()Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic org.glassfish.grizzly.http.util.StringCache.byteEnabled:Z
ireturn
LocalVariableTable:
Start End Slot Name Signature
public static void setByteEnabled(boolean);
descriptor: (Z)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iload 0
putstatic org.glassfish.grizzly.http.util.StringCache.byteEnabled:Z
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 byteEnabled Z
MethodParameters:
Name Flags
byteEnabled
public static boolean getCharEnabled();
descriptor: ()Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic org.glassfish.grizzly.http.util.StringCache.charEnabled:Z
ireturn
LocalVariableTable:
Start End Slot Name Signature
public static void setCharEnabled(boolean);
descriptor: (Z)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iload 0
putstatic org.glassfish.grizzly.http.util.StringCache.charEnabled:Z
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 charEnabled Z
MethodParameters:
Name Flags
charEnabled
public static int getTrainThreshold();
descriptor: ()I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic org.glassfish.grizzly.http.util.StringCache.trainThreshold:I
ireturn
LocalVariableTable:
Start End Slot Name Signature
public static void setTrainThreshold(int);
descriptor: (I)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iload 0
putstatic org.glassfish.grizzly.http.util.StringCache.trainThreshold:I
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 trainThreshold I
MethodParameters:
Name Flags
trainThreshold
public static int getAccessCount();
descriptor: ()I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic org.glassfish.grizzly.http.util.StringCache.accessCount:I
ireturn
LocalVariableTable:
Start End Slot Name Signature
public static int getHitCount();
descriptor: ()I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic org.glassfish.grizzly.http.util.StringCache.hitCount:I
ireturn
LocalVariableTable:
Start End Slot Name Signature
public static void reset();
descriptor: ()V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=0
0: iconst_0
putstatic org.glassfish.grizzly.http.util.StringCache.hitCount:I
1: iconst_0
putstatic org.glassfish.grizzly.http.util.StringCache.accessCount:I
2: getstatic org.glassfish.grizzly.http.util.StringCache.bcStats:Ljava/util/HashMap;
dup
astore 0
monitorenter
3: aconst_null
putstatic org.glassfish.grizzly.http.util.StringCache.bcCache:[Lorg/glassfish/grizzly/http/util/StringCache$ByteEntry;
4: iconst_0
putstatic org.glassfish.grizzly.http.util.StringCache.bcCount:I
5: aload 0
monitorexit
6: goto 9
StackMap locals: java.util.HashMap
StackMap stack: java.lang.Throwable
7: aload 0
monitorexit
8: athrow
9: StackMap locals:
StackMap stack:
getstatic org.glassfish.grizzly.http.util.StringCache.ccStats:Ljava/util/HashMap;
dup
astore 0
monitorenter
10: aconst_null
putstatic org.glassfish.grizzly.http.util.StringCache.ccCache:[Lorg/glassfish/grizzly/http/util/StringCache$CharEntry;
11: iconst_0
putstatic org.glassfish.grizzly.http.util.StringCache.ccCount:I
12: aload 0
monitorexit
13: goto 16
StackMap locals: java.util.HashMap
StackMap stack: java.lang.Throwable
14: aload 0
monitorexit
15: athrow
16: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
3 6 7 any
7 8 7 any
10 13 14 any
14 15 14 any
public static java.lang.String toString(org.glassfish.grizzly.http.util.ByteChunk);
descriptor: (Lorg/glassfish/grizzly/http/util/ByteChunk;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=16, args_size=1
start local 0 0: getstatic org.glassfish.grizzly.http.util.StringCache.bcCache:[Lorg/glassfish/grizzly/http/util/StringCache$ByteEntry;
ifnonnull 72
1: aload 0
invokevirtual org.glassfish.grizzly.http.util.ByteChunk.toStringInternal:()Ljava/lang/String;
astore 1
start local 1 2: getstatic org.glassfish.grizzly.http.util.StringCache.byteEnabled:Z
ifeq 71
3: getstatic org.glassfish.grizzly.http.util.StringCache.bcStats:Ljava/util/HashMap;
dup
astore 2
monitorenter
4: getstatic org.glassfish.grizzly.http.util.StringCache.bcCache:[Lorg/glassfish/grizzly/http/util/StringCache$ByteEntry;
ifnull 7
5: aload 1
aload 2
monitorexit
6: areturn
7: StackMap locals: java.lang.String java.util.HashMap
StackMap stack:
getstatic org.glassfish.grizzly.http.util.StringCache.bcCount:I
getstatic org.glassfish.grizzly.http.util.StringCache.trainThreshold:I
if_icmple 52
8: invokestatic java.lang.System.currentTimeMillis:()J
lstore 3
start local 3 9: new java.util.TreeMap
dup
invokespecial java.util.TreeMap.<init>:()V
astore 5
start local 5 10: getstatic org.glassfish.grizzly.http.util.StringCache.bcStats:Ljava/util/HashMap;
invokevirtual java.util.HashMap.keySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 6
start local 6 11: goto 20
12: StackMap locals: long java.util.TreeMap java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.glassfish.grizzly.http.util.StringCache$ByteEntry
astore 7
start local 7 13: getstatic org.glassfish.grizzly.http.util.StringCache.bcStats:Ljava/util/HashMap;
aload 7
invokevirtual java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast int[]
astore 8
start local 8 14: aload 8
iconst_0
iaload
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
astore 9
start local 9 15: aload 5
aload 9
invokevirtual java.util.TreeMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.ArrayList
astore 10
start local 10 16: aload 10
ifnonnull 19
17: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 10
18: aload 5
aload 9
aload 10
invokevirtual java.util.TreeMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
19: StackMap locals: org.glassfish.grizzly.http.util.ByteChunk java.lang.String java.util.HashMap long java.util.TreeMap java.util.Iterator org.glassfish.grizzly.http.util.StringCache$ByteEntry int[] java.lang.Integer java.util.ArrayList
StackMap stack:
aload 10
aload 7
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
end local 10 end local 9 end local 8 end local 7 20: StackMap locals: org.glassfish.grizzly.http.util.ByteChunk java.lang.String java.util.HashMap long java.util.TreeMap java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 12
21: getstatic org.glassfish.grizzly.http.util.StringCache.bcStats:Ljava/util/HashMap;
invokevirtual java.util.HashMap.size:()I
istore 7
start local 7 22: iload 7
getstatic org.glassfish.grizzly.http.util.StringCache.cacheSize:I
if_icmple 24
23: getstatic org.glassfish.grizzly.http.util.StringCache.cacheSize:I
istore 7
24: StackMap locals: int
StackMap stack:
iload 7
anewarray org.glassfish.grizzly.http.util.StringCache$ByteEntry
astore 8
start local 8 25: new org.glassfish.grizzly.http.util.ByteChunk
dup
invokespecial org.glassfish.grizzly.http.util.ByteChunk.<init>:()V
astore 9
start local 9 26: iconst_0
istore 10
start local 10 27: goto 44
28: StackMap locals: org.glassfish.grizzly.http.util.StringCache$ByteEntry[] org.glassfish.grizzly.http.util.ByteChunk int
StackMap stack:
aload 5
invokevirtual java.util.TreeMap.lastKey:()Ljava/lang/Object;
astore 11
start local 11 29: aload 5
aload 11
invokevirtual java.util.TreeMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.ArrayList
astore 12
start local 12 30: iconst_0
istore 13
start local 13 31: goto 42
32: StackMap locals: java.lang.Object java.util.ArrayList int
StackMap stack:
aload 12
iload 13
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
checkcast org.glassfish.grizzly.http.util.StringCache$ByteEntry
astore 14
start local 14 33: aload 9
aload 14
getfield org.glassfish.grizzly.http.util.StringCache$ByteEntry.name:[B
iconst_0
aload 14
getfield org.glassfish.grizzly.http.util.StringCache$ByteEntry.name:[B
arraylength
invokevirtual org.glassfish.grizzly.http.util.ByteChunk.setBytes:([BII)V
34: aload 9
aload 8
iload 10
invokestatic org.glassfish.grizzly.http.util.StringCache.findClosest:(Lorg/glassfish/grizzly/http/util/ByteChunk;[Lorg/glassfish/grizzly/http/util/StringCache$ByteEntry;I)I
istore 15
start local 15 35: iload 15
iload 10
if_icmpne 38
36: aload 8
iload 10
iconst_1
iadd
aload 14
aastore
37: goto 40
38: StackMap locals: org.glassfish.grizzly.http.util.StringCache$ByteEntry int
StackMap stack:
aload 8
iload 15
iconst_1
iadd
aload 8
iload 15
iconst_2
iadd
iload 10
iload 15
isub
iconst_1
isub
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
39: aload 8
iload 15
iconst_1
iadd
aload 14
aastore
40: StackMap locals:
StackMap stack:
iinc 10 1
end local 15 end local 14 41: iinc 13 1
StackMap locals:
StackMap stack:
42: iload 13
aload 12
invokevirtual java.util.ArrayList.size:()I
if_icmpge 43
iload 10
iload 7
if_icmplt 32
end local 13 43: StackMap locals:
StackMap stack:
aload 5
aload 11
invokevirtual java.util.TreeMap.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 12 end local 11 44: StackMap locals:
StackMap stack:
iload 10
iload 7
if_icmplt 28
45: iconst_0
putstatic org.glassfish.grizzly.http.util.StringCache.bcCount:I
46: getstatic org.glassfish.grizzly.http.util.StringCache.bcStats:Ljava/util/HashMap;
invokevirtual java.util.HashMap.clear:()V
47: aload 8
putstatic org.glassfish.grizzly.http.util.StringCache.bcCache:[Lorg/glassfish/grizzly/http/util/StringCache$ByteEntry;
48: getstatic org.glassfish.grizzly.http.util.StringCache.logger:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINEST:Ljava/util/logging/Level;
invokevirtual java.util.logging.Logger.isLoggable:(Ljava/util/logging/Level;)Z
ifeq 67
49: invokestatic java.lang.System.currentTimeMillis:()J
lstore 11
start local 11 50: getstatic org.glassfish.grizzly.http.util.StringCache.logger:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINEST:Ljava/util/logging/Level;
new java.lang.StringBuilder
dup
ldc "ByteCache generation time: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
lload 11
lload 3
lsub
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc "ms"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;)V
end local 11 end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 end local 3 51: goto 67
52: StackMap locals: org.glassfish.grizzly.http.util.ByteChunk java.lang.String java.util.HashMap
StackMap stack:
getstatic org.glassfish.grizzly.http.util.StringCache.bcCount:I
iconst_1
iadd
putstatic org.glassfish.grizzly.http.util.StringCache.bcCount:I
53: new org.glassfish.grizzly.http.util.StringCache$ByteEntry
dup
invokespecial org.glassfish.grizzly.http.util.StringCache$ByteEntry.<init>:()V
astore 3
start local 3 54: aload 3
aload 1
putfield org.glassfish.grizzly.http.util.StringCache$ByteEntry.value:Ljava/lang/String;
55: getstatic org.glassfish.grizzly.http.util.StringCache.bcStats:Ljava/util/HashMap;
aload 3
invokevirtual java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast int[]
astore 4
start local 4 56: aload 4
ifnonnull 66
57: aload 0
invokevirtual org.glassfish.grizzly.http.util.ByteChunk.getEnd:()I
istore 5
start local 5 58: aload 0
invokevirtual org.glassfish.grizzly.http.util.ByteChunk.getStart:()I
istore 6
start local 6 59: aload 3
aload 0
invokevirtual org.glassfish.grizzly.http.util.ByteChunk.getLength:()I
newarray 8
putfield org.glassfish.grizzly.http.util.StringCache$ByteEntry.name:[B
60: aload 0
invokevirtual org.glassfish.grizzly.http.util.ByteChunk.getBuffer:()[B
iload 6
aload 3
getfield org.glassfish.grizzly.http.util.StringCache$ByteEntry.name:[B
iconst_0
iload 5
iload 6
isub
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
61: aload 3
aload 0
invokevirtual org.glassfish.grizzly.http.util.ByteChunk.getCharset:()Ljava/nio/charset/Charset;
putfield org.glassfish.grizzly.http.util.StringCache$ByteEntry.charset:Ljava/nio/charset/Charset;
62: iconst_1
newarray 10
astore 4
63: aload 4
iconst_0
iconst_1
iastore
64: getstatic org.glassfish.grizzly.http.util.StringCache.bcStats:Ljava/util/HashMap;
aload 3
aload 4
invokevirtual java.util.HashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 6 end local 5 65: goto 67
66: StackMap locals: org.glassfish.grizzly.http.util.StringCache$ByteEntry int[]
StackMap stack:
aload 4
iconst_0
aload 4
iconst_0
iaload
iconst_1
iadd
iastore
end local 4 end local 3 67: StackMap locals:
StackMap stack:
aload 2
monitorexit
68: goto 71
StackMap locals:
StackMap stack: java.lang.Throwable
69: aload 2
monitorexit
70: athrow
71: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 72: StackMap locals:
StackMap stack:
getstatic org.glassfish.grizzly.http.util.StringCache.accessCount:I
iconst_1
iadd
putstatic org.glassfish.grizzly.http.util.StringCache.accessCount:I
73: aload 0
invokestatic org.glassfish.grizzly.http.util.StringCache.find:(Lorg/glassfish/grizzly/http/util/ByteChunk;)Ljava/lang/String;
astore 1
start local 1 74: aload 1
ifnonnull 76
75: aload 0
invokevirtual org.glassfish.grizzly.http.util.ByteChunk.toStringInternal:()Ljava/lang/String;
areturn
76: StackMap locals: java.lang.String
StackMap stack:
getstatic org.glassfish.grizzly.http.util.StringCache.hitCount:I
iconst_1
iadd
putstatic org.glassfish.grizzly.http.util.StringCache.hitCount:I
77: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 78 0 bc Lorg/glassfish/grizzly/http/util/ByteChunk;
2 72 1 value Ljava/lang/String;
9 51 3 t1 J
10 51 5 tempMap Ljava/util/TreeMap<Ljava/lang/Integer;Ljava/util/ArrayList<Lorg/glassfish/grizzly/http/util/StringCache$ByteEntry;>;>;
11 51 6 entries Ljava/util/Iterator<Lorg/glassfish/grizzly/http/util/StringCache$ByteEntry;>;
13 20 7 entry Lorg/glassfish/grizzly/http/util/StringCache$ByteEntry;
14 20 8 countA [I
15 20 9 count Ljava/lang/Integer;
16 20 10 list Ljava/util/ArrayList<Lorg/glassfish/grizzly/http/util/StringCache$ByteEntry;>;
22 51 7 size I
25 51 8 tempbcCache [Lorg/glassfish/grizzly/http/util/StringCache$ByteEntry;
26 51 9 tempChunk Lorg/glassfish/grizzly/http/util/ByteChunk;
27 51 10 n I
29 44 11 key Ljava/lang/Object;
30 44 12 list Ljava/util/ArrayList<Lorg/glassfish/grizzly/http/util/StringCache$ByteEntry;>;
31 43 13 i I
33 41 14 entry Lorg/glassfish/grizzly/http/util/StringCache$ByteEntry;
35 41 15 insertPos I
50 51 11 t2 J
54 67 3 entry Lorg/glassfish/grizzly/http/util/StringCache$ByteEntry;
56 67 4 count [I
58 65 5 end I
59 65 6 start I
74 78 1 result Ljava/lang/String;
Exception table:
from to target type
4 6 69 any
7 68 69 any
69 70 69 any
MethodParameters:
Name Flags
bc
public static java.lang.String toString(org.glassfish.grizzly.http.util.CharChunk);
descriptor: (Lorg/glassfish/grizzly/http/util/CharChunk;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=16, args_size=1
start local 0 0: getstatic org.glassfish.grizzly.http.util.StringCache.ccCache:[Lorg/glassfish/grizzly/http/util/StringCache$CharEntry;
ifnonnull 71
1: aload 0
invokevirtual org.glassfish.grizzly.http.util.CharChunk.toStringInternal:()Ljava/lang/String;
astore 1
start local 1 2: getstatic org.glassfish.grizzly.http.util.StringCache.charEnabled:Z
ifeq 70
3: getstatic org.glassfish.grizzly.http.util.StringCache.ccStats:Ljava/util/HashMap;
dup
astore 2
monitorenter
4: getstatic org.glassfish.grizzly.http.util.StringCache.ccCache:[Lorg/glassfish/grizzly/http/util/StringCache$CharEntry;
ifnull 7
5: aload 1
aload 2
monitorexit
6: areturn
7: StackMap locals: java.lang.String java.util.HashMap
StackMap stack:
getstatic org.glassfish.grizzly.http.util.StringCache.ccCount:I
getstatic org.glassfish.grizzly.http.util.StringCache.trainThreshold:I
if_icmple 52
8: invokestatic java.lang.System.currentTimeMillis:()J
lstore 3
start local 3 9: new java.util.TreeMap
dup
invokespecial java.util.TreeMap.<init>:()V
astore 5
start local 5 10: getstatic org.glassfish.grizzly.http.util.StringCache.ccStats:Ljava/util/HashMap;
invokevirtual java.util.HashMap.keySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 6
start local 6 11: goto 20
12: StackMap locals: long java.util.TreeMap java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.glassfish.grizzly.http.util.StringCache$CharEntry
astore 7
start local 7 13: getstatic org.glassfish.grizzly.http.util.StringCache.ccStats:Ljava/util/HashMap;
aload 7
invokevirtual java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast int[]
astore 8
start local 8 14: aload 8
iconst_0
iaload
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
astore 9
start local 9 15: aload 5
aload 9
invokevirtual java.util.TreeMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.ArrayList
astore 10
start local 10 16: aload 10
ifnonnull 19
17: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 10
18: aload 5
aload 9
aload 10
invokevirtual java.util.TreeMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
19: StackMap locals: org.glassfish.grizzly.http.util.CharChunk java.lang.String java.util.HashMap long java.util.TreeMap java.util.Iterator org.glassfish.grizzly.http.util.StringCache$CharEntry int[] java.lang.Integer java.util.ArrayList
StackMap stack:
aload 10
aload 7
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
end local 10 end local 9 end local 8 end local 7 20: StackMap locals: org.glassfish.grizzly.http.util.CharChunk java.lang.String java.util.HashMap long java.util.TreeMap java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 12
21: getstatic org.glassfish.grizzly.http.util.StringCache.ccStats:Ljava/util/HashMap;
invokevirtual java.util.HashMap.size:()I
istore 7
start local 7 22: iload 7
getstatic org.glassfish.grizzly.http.util.StringCache.cacheSize:I
if_icmple 24
23: getstatic org.glassfish.grizzly.http.util.StringCache.cacheSize:I
istore 7
24: StackMap locals: int
StackMap stack:
iload 7
anewarray org.glassfish.grizzly.http.util.StringCache$CharEntry
astore 8
start local 8 25: new org.glassfish.grizzly.http.util.CharChunk
dup
invokespecial org.glassfish.grizzly.http.util.CharChunk.<init>:()V
astore 9
start local 9 26: iconst_0
istore 10
start local 10 27: goto 44
28: StackMap locals: org.glassfish.grizzly.http.util.StringCache$CharEntry[] org.glassfish.grizzly.http.util.CharChunk int
StackMap stack:
aload 5
invokevirtual java.util.TreeMap.lastKey:()Ljava/lang/Object;
astore 11
start local 11 29: aload 5
aload 11
invokevirtual java.util.TreeMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.ArrayList
astore 12
start local 12 30: iconst_0
istore 13
start local 13 31: goto 42
32: StackMap locals: java.lang.Object java.util.ArrayList int
StackMap stack:
aload 12
iload 13
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
checkcast org.glassfish.grizzly.http.util.StringCache$CharEntry
astore 14
start local 14 33: aload 9
aload 14
getfield org.glassfish.grizzly.http.util.StringCache$CharEntry.name:[C
iconst_0
aload 14
getfield org.glassfish.grizzly.http.util.StringCache$CharEntry.name:[C
arraylength
invokevirtual org.glassfish.grizzly.http.util.CharChunk.setChars:([CII)V
34: aload 9
aload 8
iload 10
invokestatic org.glassfish.grizzly.http.util.StringCache.findClosest:(Lorg/glassfish/grizzly/http/util/CharChunk;[Lorg/glassfish/grizzly/http/util/StringCache$CharEntry;I)I
istore 15
start local 15 35: iload 15
iload 10
if_icmpne 38
36: aload 8
iload 10
iconst_1
iadd
aload 14
aastore
37: goto 40
38: StackMap locals: org.glassfish.grizzly.http.util.StringCache$CharEntry int
StackMap stack:
aload 8
iload 15
iconst_1
iadd
aload 8
iload 15
iconst_2
iadd
iload 10
iload 15
isub
iconst_1
isub
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
39: aload 8
iload 15
iconst_1
iadd
aload 14
aastore
40: StackMap locals:
StackMap stack:
iinc 10 1
end local 15 end local 14 41: iinc 13 1
StackMap locals:
StackMap stack:
42: iload 13
aload 12
invokevirtual java.util.ArrayList.size:()I
if_icmpge 43
iload 10
iload 7
if_icmplt 32
end local 13 43: StackMap locals:
StackMap stack:
aload 5
aload 11
invokevirtual java.util.TreeMap.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 12 end local 11 44: StackMap locals:
StackMap stack:
iload 10
iload 7
if_icmplt 28
45: iconst_0
putstatic org.glassfish.grizzly.http.util.StringCache.ccCount:I
46: getstatic org.glassfish.grizzly.http.util.StringCache.ccStats:Ljava/util/HashMap;
invokevirtual java.util.HashMap.clear:()V
47: aload 8
putstatic org.glassfish.grizzly.http.util.StringCache.ccCache:[Lorg/glassfish/grizzly/http/util/StringCache$CharEntry;
48: getstatic org.glassfish.grizzly.http.util.StringCache.logger:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINEST:Ljava/util/logging/Level;
invokevirtual java.util.logging.Logger.isLoggable:(Ljava/util/logging/Level;)Z
ifeq 66
49: invokestatic java.lang.System.currentTimeMillis:()J
lstore 11
start local 11 50: getstatic org.glassfish.grizzly.http.util.StringCache.logger:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINEST:Ljava/util/logging/Level;
new java.lang.StringBuilder
dup
ldc "CharCache generation time: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
lload 11
lload 3
lsub
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc "ms"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;)V
end local 11 end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 end local 3 51: goto 66
52: StackMap locals: org.glassfish.grizzly.http.util.CharChunk java.lang.String java.util.HashMap
StackMap stack:
getstatic org.glassfish.grizzly.http.util.StringCache.ccCount:I
iconst_1
iadd
putstatic org.glassfish.grizzly.http.util.StringCache.ccCount:I
53: new org.glassfish.grizzly.http.util.StringCache$CharEntry
dup
invokespecial org.glassfish.grizzly.http.util.StringCache$CharEntry.<init>:()V
astore 3
start local 3 54: aload 3
aload 1
putfield org.glassfish.grizzly.http.util.StringCache$CharEntry.value:Ljava/lang/String;
55: getstatic org.glassfish.grizzly.http.util.StringCache.ccStats:Ljava/util/HashMap;
aload 3
invokevirtual java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast int[]
astore 4
start local 4 56: aload 4
ifnonnull 65
57: aload 0
invokevirtual org.glassfish.grizzly.http.util.CharChunk.getEnd:()I
istore 5
start local 5 58: aload 0
invokevirtual org.glassfish.grizzly.http.util.CharChunk.getStart:()I
istore 6
start local 6 59: aload 3
aload 0
invokevirtual org.glassfish.grizzly.http.util.CharChunk.getLength:()I
newarray 5
putfield org.glassfish.grizzly.http.util.StringCache$CharEntry.name:[C
60: aload 0
invokevirtual org.glassfish.grizzly.http.util.CharChunk.getBuffer:()[C
iload 6
aload 3
getfield org.glassfish.grizzly.http.util.StringCache$CharEntry.name:[C
iconst_0
iload 5
iload 6
isub
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
61: iconst_1
newarray 10
astore 4
62: aload 4
iconst_0
iconst_1
iastore
63: getstatic org.glassfish.grizzly.http.util.StringCache.ccStats:Ljava/util/HashMap;
aload 3
aload 4
invokevirtual java.util.HashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 6 end local 5 64: goto 66
65: StackMap locals: org.glassfish.grizzly.http.util.StringCache$CharEntry int[]
StackMap stack:
aload 4
iconst_0
aload 4
iconst_0
iaload
iconst_1
iadd
iastore
end local 4 end local 3 66: StackMap locals:
StackMap stack:
aload 2
monitorexit
67: goto 70
StackMap locals:
StackMap stack: java.lang.Throwable
68: aload 2
monitorexit
69: athrow
70: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 71: StackMap locals:
StackMap stack:
getstatic org.glassfish.grizzly.http.util.StringCache.accessCount:I
iconst_1
iadd
putstatic org.glassfish.grizzly.http.util.StringCache.accessCount:I
72: aload 0
invokestatic org.glassfish.grizzly.http.util.StringCache.find:(Lorg/glassfish/grizzly/http/util/CharChunk;)Ljava/lang/String;
astore 1
start local 1 73: aload 1
ifnonnull 75
74: aload 0
invokevirtual org.glassfish.grizzly.http.util.CharChunk.toStringInternal:()Ljava/lang/String;
areturn
75: StackMap locals: java.lang.String
StackMap stack:
getstatic org.glassfish.grizzly.http.util.StringCache.hitCount:I
iconst_1
iadd
putstatic org.glassfish.grizzly.http.util.StringCache.hitCount:I
76: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 77 0 cc Lorg/glassfish/grizzly/http/util/CharChunk;
2 71 1 value Ljava/lang/String;
9 51 3 t1 J
10 51 5 tempMap Ljava/util/TreeMap<Ljava/lang/Integer;Ljava/util/ArrayList<Lorg/glassfish/grizzly/http/util/StringCache$CharEntry;>;>;
11 51 6 entries Ljava/util/Iterator<Lorg/glassfish/grizzly/http/util/StringCache$CharEntry;>;
13 20 7 entry Lorg/glassfish/grizzly/http/util/StringCache$CharEntry;
14 20 8 countA [I
15 20 9 count Ljava/lang/Integer;
16 20 10 list Ljava/util/ArrayList<Lorg/glassfish/grizzly/http/util/StringCache$CharEntry;>;
22 51 7 size I
25 51 8 tempccCache [Lorg/glassfish/grizzly/http/util/StringCache$CharEntry;
26 51 9 tempChunk Lorg/glassfish/grizzly/http/util/CharChunk;
27 51 10 n I
29 44 11 key Ljava/lang/Object;
30 44 12 list Ljava/util/ArrayList<Lorg/glassfish/grizzly/http/util/StringCache$CharEntry;>;
31 43 13 i I
33 41 14 entry Lorg/glassfish/grizzly/http/util/StringCache$CharEntry;
35 41 15 insertPos I
50 51 11 t2 J
54 66 3 entry Lorg/glassfish/grizzly/http/util/StringCache$CharEntry;
56 66 4 count [I
58 64 5 end I
59 64 6 start I
73 77 1 result Ljava/lang/String;
Exception table:
from to target type
4 6 68 any
7 67 68 any
68 69 68 any
MethodParameters:
Name Flags
cc
protected static int compare(org.glassfish.grizzly.http.util.ByteChunk, byte[]);
descriptor: (Lorg/glassfish/grizzly/http/util/ByteChunk;[B)I
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=3, locals=8, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: aload 0
invokevirtual org.glassfish.grizzly.http.util.ByteChunk.getBuffer:()[B
astore 3
start local 3 2: aload 0
invokevirtual org.glassfish.grizzly.http.util.ByteChunk.getStart:()I
istore 4
start local 4 3: aload 0
invokevirtual org.glassfish.grizzly.http.util.ByteChunk.getEnd:()I
istore 5
start local 5 4: aload 1
arraylength
istore 6
start local 6 5: iload 5
iload 4
isub
iload 6
if_icmpge 7
6: iload 5
iload 4
isub
istore 6
7: StackMap locals: org.glassfish.grizzly.http.util.ByteChunk byte[] int byte[] int int int
StackMap stack:
iconst_0
istore 7
start local 7 8: goto 15
9: StackMap locals: int
StackMap stack:
aload 3
iload 7
iload 4
iadd
baload
aload 1
iload 7
baload
if_icmple 12
10: iconst_1
istore 2
11: goto 14
StackMap locals:
StackMap stack:
12: aload 3
iload 7
iload 4
iadd
baload
aload 1
iload 7
baload
if_icmpge 14
13: iconst_m1
istore 2
14: StackMap locals:
StackMap stack:
iinc 7 1
StackMap locals:
StackMap stack:
15: iload 7
iload 6
if_icmpge 16
iload 2
ifeq 9
end local 7 16: StackMap locals:
StackMap stack:
iload 2
ifne 22
17: aload 1
arraylength
iload 5
iload 4
isub
if_icmple 20
18: iconst_m1
istore 2
19: goto 22
StackMap locals:
StackMap stack:
20: aload 1
arraylength
iload 5
iload 4
isub
if_icmpge 22
21: iconst_1
istore 2
22: StackMap locals:
StackMap stack:
iload 2
ireturn
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 name Lorg/glassfish/grizzly/http/util/ByteChunk;
0 23 1 compareTo [B
1 23 2 result I
2 23 3 b [B
3 23 4 start I
4 23 5 end I
5 23 6 len I
8 16 7 i I
MethodParameters:
Name Flags
name
compareTo
protected static java.lang.String find(org.glassfish.grizzly.http.util.ByteChunk);
descriptor: (Lorg/glassfish/grizzly/http/util/ByteChunk;)Ljava/lang/String;
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getstatic org.glassfish.grizzly.http.util.StringCache.bcCache:[Lorg/glassfish/grizzly/http/util/StringCache$ByteEntry;
getstatic org.glassfish.grizzly.http.util.StringCache.bcCache:[Lorg/glassfish/grizzly/http/util/StringCache$ByteEntry;
arraylength
invokestatic org.glassfish.grizzly.http.util.StringCache.findClosest:(Lorg/glassfish/grizzly/http/util/ByteChunk;[Lorg/glassfish/grizzly/http/util/StringCache$ByteEntry;I)I
istore 1
start local 1 1: iload 1
iflt 2
aload 0
getstatic org.glassfish.grizzly.http.util.StringCache.bcCache:[Lorg/glassfish/grizzly/http/util/StringCache$ByteEntry;
iload 1
aaload
getfield org.glassfish.grizzly.http.util.StringCache$ByteEntry.name:[B
invokestatic org.glassfish.grizzly.http.util.StringCache.compare:(Lorg/glassfish/grizzly/http/util/ByteChunk;[B)I
ifne 2
aload 0
invokevirtual org.glassfish.grizzly.http.util.ByteChunk.getCharset:()Ljava/nio/charset/Charset;
getstatic org.glassfish.grizzly.http.util.StringCache.bcCache:[Lorg/glassfish/grizzly/http/util/StringCache$ByteEntry;
iload 1
aaload
getfield org.glassfish.grizzly.http.util.StringCache$ByteEntry.charset:Ljava/nio/charset/Charset;
invokevirtual java.nio.charset.Charset.equals:(Ljava/lang/Object;)Z
ifne 3
2: StackMap locals: int
StackMap stack:
aconst_null
areturn
3: StackMap locals:
StackMap stack:
getstatic org.glassfish.grizzly.http.util.StringCache.bcCache:[Lorg/glassfish/grizzly/http/util/StringCache$ByteEntry;
iload 1
aaload
getfield org.glassfish.grizzly.http.util.StringCache$ByteEntry.value:Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 name Lorg/glassfish/grizzly/http/util/ByteChunk;
1 4 1 pos I
MethodParameters:
Name Flags
name
protected static int findClosest(org.glassfish.grizzly.http.util.ByteChunk, org.glassfish.grizzly.http.util.StringCache$ByteEntry[], int);
descriptor: (Lorg/glassfish/grizzly/http/util/ByteChunk;[Lorg/glassfish/grizzly/http/util/StringCache$ByteEntry;I)I
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=3, locals=8, args_size=3
start local 0 start local 1 start local 2 0: iconst_0
istore 3
start local 3 1: iload 2
iconst_1
isub
istore 4
start local 4 2: iload 4
iconst_m1
if_icmpne 4
3: iconst_m1
ireturn
4: StackMap locals: int int
StackMap stack:
aload 0
aload 1
iconst_0
aaload
getfield org.glassfish.grizzly.http.util.StringCache$ByteEntry.name:[B
invokestatic org.glassfish.grizzly.http.util.StringCache.compare:(Lorg/glassfish/grizzly/http/util/ByteChunk;[B)I
ifge 6
5: iconst_m1
ireturn
6: StackMap locals:
StackMap stack:
iload 4
ifne 8
7: iconst_0
ireturn
8: StackMap locals:
StackMap stack:
iload 4
iload 3
iadd
iconst_1
iushr
istore 5
start local 5 9: aload 0
aload 1
iload 5
aaload
getfield org.glassfish.grizzly.http.util.StringCache$ByteEntry.name:[B
invokestatic org.glassfish.grizzly.http.util.StringCache.compare:(Lorg/glassfish/grizzly/http/util/ByteChunk;[B)I
istore 6
start local 6 10: iload 6
iconst_1
if_icmpne 13
11: iload 5
istore 3
12: goto 16
StackMap locals: int int
StackMap stack:
13: iload 6
ifne 15
14: iload 5
ireturn
15: StackMap locals:
StackMap stack:
iload 5
istore 4
16: StackMap locals:
StackMap stack:
iload 4
iload 3
isub
iconst_1
if_icmpne 8
17: aload 0
aload 1
iload 4
aaload
getfield org.glassfish.grizzly.http.util.StringCache$ByteEntry.name:[B
invokestatic org.glassfish.grizzly.http.util.StringCache.compare:(Lorg/glassfish/grizzly/http/util/ByteChunk;[B)I
istore 7
start local 7 18: iload 7
ifge 20
19: iload 3
ireturn
20: StackMap locals: int
StackMap stack:
iload 4
ireturn
end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 name Lorg/glassfish/grizzly/http/util/ByteChunk;
0 21 1 array [Lorg/glassfish/grizzly/http/util/StringCache$ByteEntry;
0 21 2 len I
1 21 3 a I
2 21 4 b I
9 21 5 i I
10 21 6 result I
18 21 7 result2 I
MethodParameters:
Name Flags
name
array
len
protected static int compare(org.glassfish.grizzly.http.util.CharChunk, char[]);
descriptor: (Lorg/glassfish/grizzly/http/util/CharChunk;[C)I
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=3, locals=8, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: aload 0
invokevirtual org.glassfish.grizzly.http.util.CharChunk.getBuffer:()[C
astore 3
start local 3 2: aload 0
invokevirtual org.glassfish.grizzly.http.util.CharChunk.getStart:()I
istore 4
start local 4 3: aload 0
invokevirtual org.glassfish.grizzly.http.util.CharChunk.getEnd:()I
istore 5
start local 5 4: aload 1
arraylength
istore 6
start local 6 5: iload 5
iload 4
isub
iload 6
if_icmpge 7
6: iload 5
iload 4
isub
istore 6
7: StackMap locals: org.glassfish.grizzly.http.util.CharChunk char[] int char[] int int int
StackMap stack:
iconst_0
istore 7
start local 7 8: goto 15
9: StackMap locals: int
StackMap stack:
aload 3
iload 7
iload 4
iadd
caload
aload 1
iload 7
caload
if_icmple 12
10: iconst_1
istore 2
11: goto 14
StackMap locals:
StackMap stack:
12: aload 3
iload 7
iload 4
iadd
caload
aload 1
iload 7
caload
if_icmpge 14
13: iconst_m1
istore 2
14: StackMap locals:
StackMap stack:
iinc 7 1
StackMap locals:
StackMap stack:
15: iload 7
iload 6
if_icmpge 16
iload 2
ifeq 9
end local 7 16: StackMap locals:
StackMap stack:
iload 2
ifne 22
17: aload 1
arraylength
iload 5
iload 4
isub
if_icmple 20
18: iconst_m1
istore 2
19: goto 22
StackMap locals:
StackMap stack:
20: aload 1
arraylength
iload 5
iload 4
isub
if_icmpge 22
21: iconst_1
istore 2
22: StackMap locals:
StackMap stack:
iload 2
ireturn
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 name Lorg/glassfish/grizzly/http/util/CharChunk;
0 23 1 compareTo [C
1 23 2 result I
2 23 3 c [C
3 23 4 start I
4 23 5 end I
5 23 6 len I
8 16 7 i I
MethodParameters:
Name Flags
name
compareTo
protected static java.lang.String find(org.glassfish.grizzly.http.util.CharChunk);
descriptor: (Lorg/glassfish/grizzly/http/util/CharChunk;)Ljava/lang/String;
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getstatic org.glassfish.grizzly.http.util.StringCache.ccCache:[Lorg/glassfish/grizzly/http/util/StringCache$CharEntry;
getstatic org.glassfish.grizzly.http.util.StringCache.ccCache:[Lorg/glassfish/grizzly/http/util/StringCache$CharEntry;
arraylength
invokestatic org.glassfish.grizzly.http.util.StringCache.findClosest:(Lorg/glassfish/grizzly/http/util/CharChunk;[Lorg/glassfish/grizzly/http/util/StringCache$CharEntry;I)I
istore 1
start local 1 1: iload 1
iflt 2
aload 0
getstatic org.glassfish.grizzly.http.util.StringCache.ccCache:[Lorg/glassfish/grizzly/http/util/StringCache$CharEntry;
iload 1
aaload
getfield org.glassfish.grizzly.http.util.StringCache$CharEntry.name:[C
invokestatic org.glassfish.grizzly.http.util.StringCache.compare:(Lorg/glassfish/grizzly/http/util/CharChunk;[C)I
ifeq 3
2: StackMap locals: int
StackMap stack:
aconst_null
areturn
3: StackMap locals:
StackMap stack:
getstatic org.glassfish.grizzly.http.util.StringCache.ccCache:[Lorg/glassfish/grizzly/http/util/StringCache$CharEntry;
iload 1
aaload
getfield org.glassfish.grizzly.http.util.StringCache$CharEntry.value:Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 name Lorg/glassfish/grizzly/http/util/CharChunk;
1 4 1 pos I
MethodParameters:
Name Flags
name
protected static int findClosest(org.glassfish.grizzly.http.util.CharChunk, org.glassfish.grizzly.http.util.StringCache$CharEntry[], int);
descriptor: (Lorg/glassfish/grizzly/http/util/CharChunk;[Lorg/glassfish/grizzly/http/util/StringCache$CharEntry;I)I
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=3, locals=8, args_size=3
start local 0 start local 1 start local 2 0: iconst_0
istore 3
start local 3 1: iload 2
iconst_1
isub
istore 4
start local 4 2: iload 4
iconst_m1
if_icmpne 4
3: iconst_m1
ireturn
4: StackMap locals: int int
StackMap stack:
aload 0
aload 1
iconst_0
aaload
getfield org.glassfish.grizzly.http.util.StringCache$CharEntry.name:[C
invokestatic org.glassfish.grizzly.http.util.StringCache.compare:(Lorg/glassfish/grizzly/http/util/CharChunk;[C)I
ifge 6
5: iconst_m1
ireturn
6: StackMap locals:
StackMap stack:
iload 4
ifne 8
7: iconst_0
ireturn
8: StackMap locals:
StackMap stack:
iload 4
iload 3
iadd
iconst_1
iushr
istore 5
start local 5 9: aload 0
aload 1
iload 5
aaload
getfield org.glassfish.grizzly.http.util.StringCache$CharEntry.name:[C
invokestatic org.glassfish.grizzly.http.util.StringCache.compare:(Lorg/glassfish/grizzly/http/util/CharChunk;[C)I
istore 6
start local 6 10: iload 6
iconst_1
if_icmpne 13
11: iload 5
istore 3
12: goto 16
StackMap locals: int int
StackMap stack:
13: iload 6
ifne 15
14: iload 5
ireturn
15: StackMap locals:
StackMap stack:
iload 5
istore 4
16: StackMap locals:
StackMap stack:
iload 4
iload 3
isub
iconst_1
if_icmpne 8
17: aload 0
aload 1
iload 4
aaload
getfield org.glassfish.grizzly.http.util.StringCache$CharEntry.name:[C
invokestatic org.glassfish.grizzly.http.util.StringCache.compare:(Lorg/glassfish/grizzly/http/util/CharChunk;[C)I
istore 7
start local 7 18: iload 7
ifge 20
19: iload 3
ireturn
20: StackMap locals: int
StackMap stack:
iload 4
ireturn
end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 name Lorg/glassfish/grizzly/http/util/CharChunk;
0 21 1 array [Lorg/glassfish/grizzly/http/util/StringCache$CharEntry;
0 21 2 len I
1 21 3 a I
2 21 4 b I
9 21 5 i I
10 21 6 result I
18 21 7 result2 I
MethodParameters:
Name Flags
name
array
len
}
SourceFile: "StringCache.java"
NestMembers:
org.glassfish.grizzly.http.util.StringCache$ByteEntry org.glassfish.grizzly.http.util.StringCache$CharEntry
InnerClasses:
protected ByteEntry = org.glassfish.grizzly.http.util.StringCache$ByteEntry of org.glassfish.grizzly.http.util.StringCache
protected CharEntry = org.glassfish.grizzly.http.util.StringCache$CharEntry of org.glassfish.grizzly.http.util.StringCache