public class com.mongodb.internal.connection.tlschannel.TrackingAllocator implements com.mongodb.internal.connection.tlschannel.BufferAllocator
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.mongodb.internal.connection.tlschannel.TrackingAllocator
super_class: java.lang.Object
{
private com.mongodb.internal.connection.tlschannel.BufferAllocator impl;
descriptor: Lcom/mongodb/internal/connection/tlschannel/BufferAllocator;
flags: (0x0002) ACC_PRIVATE
private java.util.concurrent.atomic.LongAdder bytesAllocatedAdder;
descriptor: Ljava/util/concurrent/atomic/LongAdder;
flags: (0x0002) ACC_PRIVATE
private java.util.concurrent.atomic.LongAdder bytesDeallocatedAdder;
descriptor: Ljava/util/concurrent/atomic/LongAdder;
flags: (0x0002) ACC_PRIVATE
private java.util.concurrent.atomic.AtomicLong currentAllocationSize;
descriptor: Ljava/util/concurrent/atomic/AtomicLong;
flags: (0x0002) ACC_PRIVATE
private java.util.concurrent.atomic.LongAccumulator maxAllocationSizeAcc;
descriptor: Ljava/util/concurrent/atomic/LongAccumulator;
flags: (0x0002) ACC_PRIVATE
private java.util.concurrent.atomic.LongAdder buffersAllocatedAdder;
descriptor: Ljava/util/concurrent/atomic/LongAdder;
flags: (0x0002) ACC_PRIVATE
private java.util.concurrent.atomic.LongAdder buffersDeallocatedAdder;
descriptor: Ljava/util/concurrent/atomic/LongAdder;
flags: (0x0002) ACC_PRIVATE
public void <init>(com.mongodb.internal.connection.tlschannel.BufferAllocator);
descriptor: (Lcom/mongodb/internal/connection/tlschannel/BufferAllocator;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.concurrent.atomic.LongAdder
dup
invokespecial java.util.concurrent.atomic.LongAdder.<init>:()V
putfield com.mongodb.internal.connection.tlschannel.TrackingAllocator.bytesAllocatedAdder:Ljava/util/concurrent/atomic/LongAdder;
2: aload 0
new java.util.concurrent.atomic.LongAdder
dup
invokespecial java.util.concurrent.atomic.LongAdder.<init>:()V
putfield com.mongodb.internal.connection.tlschannel.TrackingAllocator.bytesDeallocatedAdder:Ljava/util/concurrent/atomic/LongAdder;
3: aload 0
new java.util.concurrent.atomic.AtomicLong
dup
invokespecial java.util.concurrent.atomic.AtomicLong.<init>:()V
putfield com.mongodb.internal.connection.tlschannel.TrackingAllocator.currentAllocationSize:Ljava/util/concurrent/atomic/AtomicLong;
4: aload 0
new java.util.concurrent.atomic.LongAccumulator
dup
new com.mongodb.internal.connection.tlschannel.TrackingAllocator$1
dup
aload 0
invokespecial com.mongodb.internal.connection.tlschannel.TrackingAllocator$1.<init>:(Lcom/mongodb/internal/connection/tlschannel/TrackingAllocator;)V
5: lconst_0
6: invokespecial java.util.concurrent.atomic.LongAccumulator.<init>:(Ljava/util/function/LongBinaryOperator;J)V
putfield com.mongodb.internal.connection.tlschannel.TrackingAllocator.maxAllocationSizeAcc:Ljava/util/concurrent/atomic/LongAccumulator;
7: aload 0
new java.util.concurrent.atomic.LongAdder
dup
invokespecial java.util.concurrent.atomic.LongAdder.<init>:()V
putfield com.mongodb.internal.connection.tlschannel.TrackingAllocator.buffersAllocatedAdder:Ljava/util/concurrent/atomic/LongAdder;
8: aload 0
new java.util.concurrent.atomic.LongAdder
dup
invokespecial java.util.concurrent.atomic.LongAdder.<init>:()V
putfield com.mongodb.internal.connection.tlschannel.TrackingAllocator.buffersDeallocatedAdder:Ljava/util/concurrent/atomic/LongAdder;
9: aload 0
aload 1
putfield com.mongodb.internal.connection.tlschannel.TrackingAllocator.impl:Lcom/mongodb/internal/connection/tlschannel/BufferAllocator;
10: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/mongodb/internal/connection/tlschannel/TrackingAllocator;
0 11 1 impl Lcom/mongodb/internal/connection/tlschannel/BufferAllocator;
MethodParameters:
Name Flags
impl final
public org.bson.ByteBuf allocate(int);
descriptor: (I)Lorg/bson/ByteBuf;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.mongodb.internal.connection.tlschannel.TrackingAllocator.bytesAllocatedAdder:Ljava/util/concurrent/atomic/LongAdder;
iload 1
i2l
invokevirtual java.util.concurrent.atomic.LongAdder.add:(J)V
1: aload 0
getfield com.mongodb.internal.connection.tlschannel.TrackingAllocator.currentAllocationSize:Ljava/util/concurrent/atomic/AtomicLong;
iload 1
i2l
invokevirtual java.util.concurrent.atomic.AtomicLong.addAndGet:(J)J
pop2
2: aload 0
getfield com.mongodb.internal.connection.tlschannel.TrackingAllocator.buffersAllocatedAdder:Ljava/util/concurrent/atomic/LongAdder;
invokevirtual java.util.concurrent.atomic.LongAdder.increment:()V
3: aload 0
getfield com.mongodb.internal.connection.tlschannel.TrackingAllocator.impl:Lcom/mongodb/internal/connection/tlschannel/BufferAllocator;
iload 1
invokeinterface com.mongodb.internal.connection.tlschannel.BufferAllocator.allocate:(I)Lorg/bson/ByteBuf;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/mongodb/internal/connection/tlschannel/TrackingAllocator;
0 4 1 size I
MethodParameters:
Name Flags
size final
public void free(org.bson.ByteBuf);
descriptor: (Lorg/bson/ByteBuf;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface org.bson.ByteBuf.capacity:()I
istore 2
start local 2 1: aload 0
getfield com.mongodb.internal.connection.tlschannel.TrackingAllocator.bytesDeallocatedAdder:Ljava/util/concurrent/atomic/LongAdder;
iload 2
i2l
invokevirtual java.util.concurrent.atomic.LongAdder.add:(J)V
2: aload 0
getfield com.mongodb.internal.connection.tlschannel.TrackingAllocator.maxAllocationSizeAcc:Ljava/util/concurrent/atomic/LongAccumulator;
aload 0
getfield com.mongodb.internal.connection.tlschannel.TrackingAllocator.currentAllocationSize:Ljava/util/concurrent/atomic/AtomicLong;
invokevirtual java.util.concurrent.atomic.AtomicLong.longValue:()J
invokevirtual java.util.concurrent.atomic.LongAccumulator.accumulate:(J)V
3: aload 0
getfield com.mongodb.internal.connection.tlschannel.TrackingAllocator.currentAllocationSize:Ljava/util/concurrent/atomic/AtomicLong;
iload 2
ineg
i2l
invokevirtual java.util.concurrent.atomic.AtomicLong.addAndGet:(J)J
pop2
4: aload 0
getfield com.mongodb.internal.connection.tlschannel.TrackingAllocator.buffersDeallocatedAdder:Ljava/util/concurrent/atomic/LongAdder;
invokevirtual java.util.concurrent.atomic.LongAdder.increment:()V
5: aload 0
getfield com.mongodb.internal.connection.tlschannel.TrackingAllocator.impl:Lcom/mongodb/internal/connection/tlschannel/BufferAllocator;
aload 1
invokeinterface com.mongodb.internal.connection.tlschannel.BufferAllocator.free:(Lorg/bson/ByteBuf;)V
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/mongodb/internal/connection/tlschannel/TrackingAllocator;
0 7 1 buffer Lorg/bson/ByteBuf;
1 7 2 size I
MethodParameters:
Name Flags
buffer final
public long bytesAllocated();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.internal.connection.tlschannel.TrackingAllocator.bytesAllocatedAdder:Ljava/util/concurrent/atomic/LongAdder;
invokevirtual java.util.concurrent.atomic.LongAdder.longValue:()J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/internal/connection/tlschannel/TrackingAllocator;
public long bytesDeallocated();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.internal.connection.tlschannel.TrackingAllocator.bytesDeallocatedAdder:Ljava/util/concurrent/atomic/LongAdder;
invokevirtual java.util.concurrent.atomic.LongAdder.longValue:()J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/internal/connection/tlschannel/TrackingAllocator;
public long currentAllocation();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.internal.connection.tlschannel.TrackingAllocator.currentAllocationSize:Ljava/util/concurrent/atomic/AtomicLong;
invokevirtual java.util.concurrent.atomic.AtomicLong.longValue:()J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/internal/connection/tlschannel/TrackingAllocator;
public long maxAllocation();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.internal.connection.tlschannel.TrackingAllocator.maxAllocationSizeAcc:Ljava/util/concurrent/atomic/LongAccumulator;
invokevirtual java.util.concurrent.atomic.LongAccumulator.longValue:()J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/internal/connection/tlschannel/TrackingAllocator;
public long buffersAllocated();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.internal.connection.tlschannel.TrackingAllocator.buffersAllocatedAdder:Ljava/util/concurrent/atomic/LongAdder;
invokevirtual java.util.concurrent.atomic.LongAdder.longValue:()J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/internal/connection/tlschannel/TrackingAllocator;
public long buffersDeallocated();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.internal.connection.tlschannel.TrackingAllocator.buffersDeallocatedAdder:Ljava/util/concurrent/atomic/LongAdder;
invokevirtual java.util.concurrent.atomic.LongAdder.longValue:()J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/internal/connection/tlschannel/TrackingAllocator;
}
SourceFile: "TrackingAllocator.java"
NestMembers:
com.mongodb.internal.connection.tlschannel.TrackingAllocator$1
InnerClasses:
com.mongodb.internal.connection.tlschannel.TrackingAllocator$1