public class com.netflix.hystrix.util.LongAdder extends com.netflix.hystrix.util.Striped64 implements java.io.Serializable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.netflix.hystrix.util.LongAdder
super_class: com.netflix.hystrix.util.Striped64
{
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 7249069246863182397
final long fn(long, long);
descriptor: (JJ)J
flags: (0x0010) ACC_FINAL
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 3 0: lload 1
lload 3
ladd
lreturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/netflix/hystrix/util/LongAdder;
0 1 1 v J
0 1 3 x J
MethodParameters:
Name Flags
v
x
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial com.netflix.hystrix.util.Striped64.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/netflix/hystrix/util/LongAdder;
public void add(long);
descriptor: (J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=13, args_size=2
start local 0 start local 1 0: aload 0
getfield com.netflix.hystrix.util.LongAdder.cells:[Lcom/netflix/hystrix/util/Striped64$Cell;
dup
astore 3
start local 3 1: ifnonnull 3
aload 0
aload 0
getfield com.netflix.hystrix.util.LongAdder.base:J
dup2
lstore 4
start local 4 2: lload 4
lload 1
ladd
invokevirtual com.netflix.hystrix.util.LongAdder.casBase:(JJ)Z
ifne 13
end local 4 3: StackMap locals: com.netflix.hystrix.util.Striped64$Cell[]
StackMap stack:
iconst_1
istore 11
start local 11 4: getstatic com.netflix.hystrix.util.LongAdder.threadHashCode:Lcom/netflix/hystrix/util/Striped64$ThreadHashCode;
invokevirtual com.netflix.hystrix.util.Striped64$ThreadHashCode.get:()Ljava/lang/Object;
checkcast com.netflix.hystrix.util.Striped64$HashCode
dup
astore 8
start local 8 5: getfield com.netflix.hystrix.util.Striped64$HashCode.code:I
istore 12
start local 12 6: aload 3
ifnull 12
aload 3
arraylength
dup
istore 10
start local 10 7: iconst_1
if_icmplt 12
8: aload 3
iload 10
iconst_1
isub
iload 12
iand
aaload
dup
astore 9
start local 9 9: ifnull 12
10: aload 9
aload 9
getfield com.netflix.hystrix.util.Striped64$Cell.value:J
dup2
lstore 6
start local 6 11: lload 6
lload 1
ladd
invokevirtual com.netflix.hystrix.util.Striped64$Cell.cas:(JJ)Z
dup
istore 11
ifne 13
end local 10 end local 9 end local 6 12: StackMap locals: com.netflix.hystrix.util.LongAdder long com.netflix.hystrix.util.Striped64$Cell[] top top top top com.netflix.hystrix.util.Striped64$HashCode top top int int
StackMap stack:
aload 0
lload 1
aload 8
iload 11
invokevirtual com.netflix.hystrix.util.LongAdder.retryUpdate:(JLcom/netflix/hystrix/util/Striped64$HashCode;Z)V
end local 12 end local 11 end local 8 13: StackMap locals: com.netflix.hystrix.util.LongAdder long com.netflix.hystrix.util.Striped64$Cell[]
StackMap stack:
return
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lcom/netflix/hystrix/util/LongAdder;
0 14 1 x J
1 14 3 as [Lcom/netflix/hystrix/util/Striped64$Cell;
2 3 4 b J
11 12 6 v J
5 13 8 hc Lcom/netflix/hystrix/util/Striped64$HashCode;
9 12 9 a Lcom/netflix/hystrix/util/Striped64$Cell;
7 12 10 n I
4 13 11 uncontended Z
6 13 12 h I
MethodParameters:
Name Flags
x
public void increment();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
lconst_1
invokevirtual com.netflix.hystrix.util.LongAdder.add:(J)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/netflix/hystrix/util/LongAdder;
public void decrement();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
ldc -1
invokevirtual com.netflix.hystrix.util.LongAdder.add:(J)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/netflix/hystrix/util/LongAdder;
public long sum();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=7, args_size=1
start local 0 0: aload 0
getfield com.netflix.hystrix.util.LongAdder.base:J
lstore 1
start local 1 1: aload 0
getfield com.netflix.hystrix.util.LongAdder.cells:[Lcom/netflix/hystrix/util/Striped64$Cell;
astore 3
start local 3 2: aload 3
ifnull 11
3: aload 3
arraylength
istore 4
start local 4 4: iconst_0
istore 5
start local 5 5: goto 10
6: StackMap locals: com.netflix.hystrix.util.LongAdder long com.netflix.hystrix.util.Striped64$Cell[] int int
StackMap stack:
aload 3
iload 5
aaload
astore 6
start local 6 7: aload 6
ifnull 9
8: lload 1
aload 6
getfield com.netflix.hystrix.util.Striped64$Cell.value:J
ladd
lstore 1
end local 6 9: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
10: iload 5
iload 4
if_icmplt 6
end local 5 end local 4 11: StackMap locals:
StackMap stack:
lload 1
lreturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lcom/netflix/hystrix/util/LongAdder;
1 12 1 sum J
2 12 3 as [Lcom/netflix/hystrix/util/Striped64$Cell;
4 11 4 n I
5 11 5 i I
7 9 6 a Lcom/netflix/hystrix/util/Striped64$Cell;
public void reset();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
lconst_0
invokevirtual com.netflix.hystrix.util.LongAdder.internalReset:(J)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/netflix/hystrix/util/LongAdder;
public long sumThenReset();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=7, args_size=1
start local 0 0: aload 0
getfield com.netflix.hystrix.util.LongAdder.base:J
lstore 1
start local 1 1: aload 0
getfield com.netflix.hystrix.util.LongAdder.cells:[Lcom/netflix/hystrix/util/Striped64$Cell;
astore 3
start local 3 2: aload 0
lconst_0
putfield com.netflix.hystrix.util.LongAdder.base:J
3: aload 3
ifnull 13
4: aload 3
arraylength
istore 4
start local 4 5: iconst_0
istore 5
start local 5 6: goto 12
7: StackMap locals: com.netflix.hystrix.util.LongAdder long com.netflix.hystrix.util.Striped64$Cell[] int int
StackMap stack:
aload 3
iload 5
aaload
astore 6
start local 6 8: aload 6
ifnull 11
9: lload 1
aload 6
getfield com.netflix.hystrix.util.Striped64$Cell.value:J
ladd
lstore 1
10: aload 6
lconst_0
putfield com.netflix.hystrix.util.Striped64$Cell.value:J
end local 6 11: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
12: iload 5
iload 4
if_icmplt 7
end local 5 end local 4 13: StackMap locals:
StackMap stack:
lload 1
lreturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lcom/netflix/hystrix/util/LongAdder;
1 14 1 sum J
2 14 3 as [Lcom/netflix/hystrix/util/Striped64$Cell;
5 13 4 n I
6 13 5 i I
8 11 6 a Lcom/netflix/hystrix/util/Striped64$Cell;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual com.netflix.hystrix.util.LongAdder.sum:()J
invokestatic java.lang.Long.toString:(J)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/netflix/hystrix/util/LongAdder;
public long longValue();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual com.netflix.hystrix.util.LongAdder.sum:()J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/netflix/hystrix/util/LongAdder;
public int intValue();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual com.netflix.hystrix.util.LongAdder.sum:()J
l2i
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/netflix/hystrix/util/LongAdder;
public float floatValue();
descriptor: ()F
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual com.netflix.hystrix.util.LongAdder.sum:()J
l2f
freturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/netflix/hystrix/util/LongAdder;
public double doubleValue();
descriptor: ()D
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual com.netflix.hystrix.util.LongAdder.sum:()J
l2d
dreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/netflix/hystrix/util/LongAdder;
private void writeObject(java.io.ObjectOutputStream);
descriptor: (Ljava/io/ObjectOutputStream;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.io.ObjectOutputStream.defaultWriteObject:()V
1: aload 1
aload 0
invokevirtual com.netflix.hystrix.util.LongAdder.sum:()J
invokevirtual java.io.ObjectOutputStream.writeLong:(J)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/netflix/hystrix/util/LongAdder;
0 3 1 s Ljava/io/ObjectOutputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
s
private void readObject(java.io.ObjectInputStream);
descriptor: (Ljava/io/ObjectInputStream;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.io.ObjectInputStream.defaultReadObject:()V
1: aload 0
iconst_0
putfield com.netflix.hystrix.util.LongAdder.busy:I
2: aload 0
aconst_null
putfield com.netflix.hystrix.util.LongAdder.cells:[Lcom/netflix/hystrix/util/Striped64$Cell;
3: aload 0
aload 1
invokevirtual java.io.ObjectInputStream.readLong:()J
putfield com.netflix.hystrix.util.LongAdder.base:J
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/netflix/hystrix/util/LongAdder;
0 5 1 s Ljava/io/ObjectInputStream;
Exceptions:
throws java.io.IOException, java.lang.ClassNotFoundException
MethodParameters:
Name Flags
s
}
SourceFile: "LongAdder.java"
InnerClasses:
final Cell = com.netflix.hystrix.util.Striped64$Cell of com.netflix.hystrix.util.Striped64
final HashCode = com.netflix.hystrix.util.Striped64$HashCode of com.netflix.hystrix.util.Striped64
final ThreadHashCode = com.netflix.hystrix.util.Striped64$ThreadHashCode of com.netflix.hystrix.util.Striped64