public class java.util.concurrent.atomic.AtomicLong extends java.lang.Number implements java.io.Serializable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: java.util.concurrent.atomic.AtomicLong
super_class: java.lang.Number
{
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1927816293512124184
private static final sun.misc.Unsafe unsafe;
descriptor: Lsun/misc/Unsafe;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final long valueOffset;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static final boolean VM_SUPPORTS_LONG_CAS;
descriptor: Z
flags: (0x0018) ACC_STATIC, ACC_FINAL
private volatile long value;
descriptor: J
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=1, args_size=0
0: invokestatic sun.misc.Unsafe.getUnsafe:()Lsun/misc/Unsafe;
putstatic java.util.concurrent.atomic.AtomicLong.unsafe:Lsun/misc/Unsafe;
1: invokestatic java.util.concurrent.atomic.AtomicLong.VMSupportsCS8:()Z
putstatic java.util.concurrent.atomic.AtomicLong.VM_SUPPORTS_LONG_CAS:Z
2: getstatic java.util.concurrent.atomic.AtomicLong.unsafe:Lsun/misc/Unsafe;
3: ldc Ljava/util/concurrent/atomic/AtomicLong;
ldc "value"
invokevirtual java.lang.Class.getDeclaredField:(Ljava/lang/String;)Ljava/lang/reflect/Field;
4: invokevirtual sun.misc.Unsafe.objectFieldOffset:(Ljava/lang/reflect/Field;)J
putstatic java.util.concurrent.atomic.AtomicLong.valueOffset:J
5: goto 8
StackMap locals:
StackMap stack: java.lang.Exception
6: astore 0
start local 0 7: new java.lang.Error
dup
aload 0
invokespecial java.lang.Error.<init>:(Ljava/lang/Throwable;)V
athrow
end local 0 8: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
7 8 0 ex Ljava/lang/Exception;
Exception table:
from to target type
2 5 6 Class java.lang.Exception
private static native boolean VMSupportsCS8();
descriptor: ()Z
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
public void <init>(long);
descriptor: (J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Number.<init>:()V
1: aload 0
lload 1
putfield java.util.concurrent.atomic.AtomicLong.value:J
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/util/concurrent/atomic/AtomicLong;
0 3 1 initialValue J
MethodParameters:
Name Flags
initialValue
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.Number.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/util/concurrent/atomic/AtomicLong;
public final long get();
descriptor: ()J
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield java.util.concurrent.atomic.AtomicLong.value:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/concurrent/atomic/AtomicLong;
public final void set(long);
descriptor: (J)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
lload 1
putfield java.util.concurrent.atomic.AtomicLong.value:J
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/util/concurrent/atomic/AtomicLong;
0 2 1 newValue J
MethodParameters:
Name Flags
newValue
public final void lazySet(long);
descriptor: (J)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: getstatic java.util.concurrent.atomic.AtomicLong.unsafe:Lsun/misc/Unsafe;
aload 0
getstatic java.util.concurrent.atomic.AtomicLong.valueOffset:J
lload 1
invokevirtual sun.misc.Unsafe.putOrderedLong:(Ljava/lang/Object;JJ)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/util/concurrent/atomic/AtomicLong;
0 2 1 newValue J
MethodParameters:
Name Flags
newValue
public final long getAndSet(long);
descriptor: (J)J
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: getstatic java.util.concurrent.atomic.AtomicLong.unsafe:Lsun/misc/Unsafe;
aload 0
getstatic java.util.concurrent.atomic.AtomicLong.valueOffset:J
lload 1
invokevirtual sun.misc.Unsafe.getAndSetLong:(Ljava/lang/Object;JJ)J
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/concurrent/atomic/AtomicLong;
0 1 1 newValue J
MethodParameters:
Name Flags
newValue
public final boolean compareAndSet(long, long);
descriptor: (JJ)Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=8, locals=5, args_size=3
start local 0 start local 1 start local 3 0: getstatic java.util.concurrent.atomic.AtomicLong.unsafe:Lsun/misc/Unsafe;
aload 0
getstatic java.util.concurrent.atomic.AtomicLong.valueOffset:J
lload 1
lload 3
invokevirtual sun.misc.Unsafe.compareAndSwapLong:(Ljava/lang/Object;JJJ)Z
ireturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/concurrent/atomic/AtomicLong;
0 1 1 expect J
0 1 3 update J
MethodParameters:
Name Flags
expect
update
public final boolean weakCompareAndSet(long, long);
descriptor: (JJ)Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=8, locals=5, args_size=3
start local 0 start local 1 start local 3 0: getstatic java.util.concurrent.atomic.AtomicLong.unsafe:Lsun/misc/Unsafe;
aload 0
getstatic java.util.concurrent.atomic.AtomicLong.valueOffset:J
lload 1
lload 3
invokevirtual sun.misc.Unsafe.compareAndSwapLong:(Ljava/lang/Object;JJJ)Z
ireturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/concurrent/atomic/AtomicLong;
0 1 1 expect J
0 1 3 update J
MethodParameters:
Name Flags
expect
update
public final long getAndIncrement();
descriptor: ()J
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=6, locals=1, args_size=1
start local 0 0: getstatic java.util.concurrent.atomic.AtomicLong.unsafe:Lsun/misc/Unsafe;
aload 0
getstatic java.util.concurrent.atomic.AtomicLong.valueOffset:J
lconst_1
invokevirtual sun.misc.Unsafe.getAndAddLong:(Ljava/lang/Object;JJ)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/concurrent/atomic/AtomicLong;
public final long getAndDecrement();
descriptor: ()J
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=6, locals=1, args_size=1
start local 0 0: getstatic java.util.concurrent.atomic.AtomicLong.unsafe:Lsun/misc/Unsafe;
aload 0
getstatic java.util.concurrent.atomic.AtomicLong.valueOffset:J
ldc -1
invokevirtual sun.misc.Unsafe.getAndAddLong:(Ljava/lang/Object;JJ)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/concurrent/atomic/AtomicLong;
public final long getAndAdd(long);
descriptor: (J)J
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: getstatic java.util.concurrent.atomic.AtomicLong.unsafe:Lsun/misc/Unsafe;
aload 0
getstatic java.util.concurrent.atomic.AtomicLong.valueOffset:J
lload 1
invokevirtual sun.misc.Unsafe.getAndAddLong:(Ljava/lang/Object;JJ)J
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/concurrent/atomic/AtomicLong;
0 1 1 delta J
MethodParameters:
Name Flags
delta
public final long incrementAndGet();
descriptor: ()J
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=6, locals=1, args_size=1
start local 0 0: getstatic java.util.concurrent.atomic.AtomicLong.unsafe:Lsun/misc/Unsafe;
aload 0
getstatic java.util.concurrent.atomic.AtomicLong.valueOffset:J
lconst_1
invokevirtual sun.misc.Unsafe.getAndAddLong:(Ljava/lang/Object;JJ)J
lconst_1
ladd
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/concurrent/atomic/AtomicLong;
public final long decrementAndGet();
descriptor: ()J
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=6, locals=1, args_size=1
start local 0 0: getstatic java.util.concurrent.atomic.AtomicLong.unsafe:Lsun/misc/Unsafe;
aload 0
getstatic java.util.concurrent.atomic.AtomicLong.valueOffset:J
ldc -1
invokevirtual sun.misc.Unsafe.getAndAddLong:(Ljava/lang/Object;JJ)J
lconst_1
lsub
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/concurrent/atomic/AtomicLong;
public final long addAndGet(long);
descriptor: (J)J
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: getstatic java.util.concurrent.atomic.AtomicLong.unsafe:Lsun/misc/Unsafe;
aload 0
getstatic java.util.concurrent.atomic.AtomicLong.valueOffset:J
lload 1
invokevirtual sun.misc.Unsafe.getAndAddLong:(Ljava/lang/Object;JJ)J
lload 1
ladd
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/concurrent/atomic/AtomicLong;
0 1 1 delta J
MethodParameters:
Name Flags
delta
public final long getAndUpdate(java.util.function.LongUnaryOperator);
descriptor: (Ljava/util/function/LongUnaryOperator;)J
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.util.concurrent.atomic.AtomicLong.get:()J
lstore 2
start local 2 1: aload 1
lload 2
invokeinterface java.util.function.LongUnaryOperator.applyAsLong:(J)J
lstore 4
start local 4 2: aload 0
lload 2
lload 4
invokevirtual java.util.concurrent.atomic.AtomicLong.compareAndSet:(JJ)Z
ifeq 0
3: lload 2
lreturn
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/util/concurrent/atomic/AtomicLong;
0 4 1 updateFunction Ljava/util/function/LongUnaryOperator;
1 4 2 prev J
2 4 4 next J
MethodParameters:
Name Flags
updateFunction
public final long updateAndGet(java.util.function.LongUnaryOperator);
descriptor: (Ljava/util/function/LongUnaryOperator;)J
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.util.concurrent.atomic.AtomicLong.get:()J
lstore 2
start local 2 1: aload 1
lload 2
invokeinterface java.util.function.LongUnaryOperator.applyAsLong:(J)J
lstore 4
start local 4 2: aload 0
lload 2
lload 4
invokevirtual java.util.concurrent.atomic.AtomicLong.compareAndSet:(JJ)Z
ifeq 0
3: lload 4
lreturn
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/util/concurrent/atomic/AtomicLong;
0 4 1 updateFunction Ljava/util/function/LongUnaryOperator;
1 4 2 prev J
2 4 4 next J
MethodParameters:
Name Flags
updateFunction
public final long getAndAccumulate(long, java.util.function.LongBinaryOperator);
descriptor: (JLjava/util/function/LongBinaryOperator;)J
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=5, locals=8, args_size=3
start local 0 start local 1 start local 3 0: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.util.concurrent.atomic.AtomicLong.get:()J
lstore 4
start local 4 1: aload 3
lload 4
lload 1
invokeinterface java.util.function.LongBinaryOperator.applyAsLong:(JJ)J
lstore 6
start local 6 2: aload 0
lload 4
lload 6
invokevirtual java.util.concurrent.atomic.AtomicLong.compareAndSet:(JJ)Z
ifeq 0
3: lload 4
lreturn
end local 6 end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/util/concurrent/atomic/AtomicLong;
0 4 1 x J
0 4 3 accumulatorFunction Ljava/util/function/LongBinaryOperator;
1 4 4 prev J
2 4 6 next J
MethodParameters:
Name Flags
x
accumulatorFunction
public final long accumulateAndGet(long, java.util.function.LongBinaryOperator);
descriptor: (JLjava/util/function/LongBinaryOperator;)J
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=5, locals=8, args_size=3
start local 0 start local 1 start local 3 0: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.util.concurrent.atomic.AtomicLong.get:()J
lstore 4
start local 4 1: aload 3
lload 4
lload 1
invokeinterface java.util.function.LongBinaryOperator.applyAsLong:(JJ)J
lstore 6
start local 6 2: aload 0
lload 4
lload 6
invokevirtual java.util.concurrent.atomic.AtomicLong.compareAndSet:(JJ)Z
ifeq 0
3: lload 6
lreturn
end local 6 end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/util/concurrent/atomic/AtomicLong;
0 4 1 x J
0 4 3 accumulatorFunction Ljava/util/function/LongBinaryOperator;
1 4 4 prev J
2 4 6 next J
MethodParameters:
Name Flags
x
accumulatorFunction
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 java.util.concurrent.atomic.AtomicLong.get:()J
invokestatic java.lang.Long.toString:(J)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/concurrent/atomic/AtomicLong;
public int intValue();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.util.concurrent.atomic.AtomicLong.get:()J
l2i
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/concurrent/atomic/AtomicLong;
public long longValue();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.util.concurrent.atomic.AtomicLong.get:()J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/concurrent/atomic/AtomicLong;
public float floatValue();
descriptor: ()F
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.util.concurrent.atomic.AtomicLong.get:()J
l2f
freturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/concurrent/atomic/AtomicLong;
public double doubleValue();
descriptor: ()D
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.util.concurrent.atomic.AtomicLong.get:()J
l2d
dreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/concurrent/atomic/AtomicLong;
}
SourceFile: "AtomicLong.java"