public class org.apache.cassandra.net.ResourceLimits$Concurrent implements org.apache.cassandra.net.ResourceLimits$Limit
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.net.ResourceLimits$Concurrent
super_class: java.lang.Object
{
private final long limit;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile long using;
descriptor: J
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private static final java.util.concurrent.atomic.AtomicLongFieldUpdater<org.apache.cassandra.net.ResourceLimits$Concurrent> usingUpdater;
descriptor: Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/concurrent/atomic/AtomicLongFieldUpdater<Lorg/apache/cassandra/net/ResourceLimits$Concurrent;>;
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/net/ResourceLimits;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic org.apache.cassandra.net.ResourceLimits$Concurrent.$assertionsDisabled:Z
3: ldc Lorg/apache/cassandra/net/ResourceLimits$Concurrent;
ldc "using"
invokestatic java.util.concurrent.atomic.AtomicLongFieldUpdater.newUpdater:(Ljava/lang/Class;Ljava/lang/String;)Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;
4: putstatic org.apache.cassandra.net.ResourceLimits$Concurrent.usingUpdater:Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;
5: return
LocalVariableTable:
Start End Slot Name Signature
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.Object.<init>:()V
1: aload 0
lload 1
putfield org.apache.cassandra.net.ResourceLimits$Concurrent.limit:J
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/net/ResourceLimits$Concurrent;
0 3 1 limit J
MethodParameters:
Name Flags
limit
public long limit();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.net.ResourceLimits$Concurrent.limit:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/net/ResourceLimits$Concurrent;
public long remaining();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.net.ResourceLimits$Concurrent.limit:J
aload 0
getfield org.apache.cassandra.net.ResourceLimits$Concurrent.using:J
lsub
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/net/ResourceLimits$Concurrent;
public long using();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.net.ResourceLimits$Concurrent.using:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/net/ResourceLimits$Concurrent;
public boolean tryAllocate(long);
descriptor: (J)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=7, args_size=2
start local 0 start local 1 0: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.net.ResourceLimits$Concurrent.using:J
lstore 3
start local 3 1: lload 3
lload 1
ladd
lstore 5
start local 5 2: lload 5
aload 0
getfield org.apache.cassandra.net.ResourceLimits$Concurrent.limit:J
lcmp
ifle 4
3: iconst_0
ireturn
4: StackMap locals: long long
StackMap stack:
getstatic org.apache.cassandra.net.ResourceLimits$Concurrent.usingUpdater:Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;
aload 0
lload 3
lload 5
invokevirtual java.util.concurrent.atomic.AtomicLongFieldUpdater.compareAndSet:(Ljava/lang/Object;JJ)Z
ifeq 0
5: iconst_1
ireturn
end local 5 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/net/ResourceLimits$Concurrent;
0 6 1 amount J
1 6 3 current J
2 6 5 next J
MethodParameters:
Name Flags
amount
public void allocate(long);
descriptor: (J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=7, args_size=2
start local 0 start local 1 0: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.net.ResourceLimits$Concurrent.using:J
lstore 3
start local 3 1: lload 3
lload 1
ladd
lstore 5
start local 5 2: getstatic org.apache.cassandra.net.ResourceLimits$Concurrent.usingUpdater:Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;
aload 0
lload 3
lload 5
invokevirtual java.util.concurrent.atomic.AtomicLongFieldUpdater.compareAndSet:(Ljava/lang/Object;JJ)Z
ifeq 0
3: return
end local 5 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/net/ResourceLimits$Concurrent;
0 4 1 amount J
1 4 3 current J
2 4 5 next J
MethodParameters:
Name Flags
amount
public org.apache.cassandra.net.ResourceLimits$Outcome release(long);
descriptor: (J)Lorg/apache/cassandra/net/ResourceLimits$Outcome;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: getstatic org.apache.cassandra.net.ResourceLimits$Concurrent.$assertionsDisabled:Z
ifne 1
lload 1
lconst_0
lcmp
ifge 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.net.ResourceLimits$Concurrent.usingUpdater:Ljava/util/concurrent/atomic/AtomicLongFieldUpdater;
aload 0
lload 1
lneg
invokevirtual java.util.concurrent.atomic.AtomicLongFieldUpdater.addAndGet:(Ljava/lang/Object;J)J
lstore 3
start local 3 2: getstatic org.apache.cassandra.net.ResourceLimits$Concurrent.$assertionsDisabled:Z
ifne 3
lload 3
lconst_0
lcmp
ifge 3
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
3: StackMap locals: long
StackMap stack:
lload 3
aload 0
getfield org.apache.cassandra.net.ResourceLimits$Concurrent.limit:J
lcmp
iflt 4
getstatic org.apache.cassandra.net.ResourceLimits$Outcome.ABOVE_LIMIT:Lorg/apache/cassandra/net/ResourceLimits$Outcome;
goto 5
StackMap locals:
StackMap stack:
4: getstatic org.apache.cassandra.net.ResourceLimits$Outcome.BELOW_LIMIT:Lorg/apache/cassandra/net/ResourceLimits$Outcome;
StackMap locals:
StackMap stack: org.apache.cassandra.net.ResourceLimits$Outcome
5: areturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/net/ResourceLimits$Concurrent;
0 6 1 amount J
2 6 3 using J
MethodParameters:
Name Flags
amount
}
SourceFile: "ResourceLimits.java"
NestHost: org.apache.cassandra.net.ResourceLimits
InnerClasses:
public Concurrent = org.apache.cassandra.net.ResourceLimits$Concurrent of org.apache.cassandra.net.ResourceLimits
public abstract Limit = org.apache.cassandra.net.ResourceLimits$Limit of org.apache.cassandra.net.ResourceLimits
public final Outcome = org.apache.cassandra.net.ResourceLimits$Outcome of org.apache.cassandra.net.ResourceLimits