final class org.apache.cassandra.io.util.MmappedRegions$State
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: org.apache.cassandra.io.util.MmappedRegions$State
super_class: java.lang.Object
{
private final org.apache.cassandra.io.util.ChannelProxy channel;
descriptor: Lorg/apache/cassandra/io/util/ChannelProxy;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.nio.ByteBuffer[] buffers;
descriptor: [Ljava/nio/ByteBuffer;
flags: (0x0002) ACC_PRIVATE
private long[] offsets;
descriptor: [J
flags: (0x0002) ACC_PRIVATE
private long length;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private int last;
descriptor: I
flags: (0x0002) ACC_PRIVATE
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=1, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/io/util/MmappedRegions;
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.io.util.MmappedRegions$State.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>(org.apache.cassandra.io.util.ChannelProxy);
descriptor: (Lorg/apache/cassandra/io/util/ChannelProxy;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
invokevirtual org.apache.cassandra.io.util.ChannelProxy.sharedCopy:()Lorg/apache/cassandra/io/util/ChannelProxy;
putfield org.apache.cassandra.io.util.MmappedRegions$State.channel:Lorg/apache/cassandra/io/util/ChannelProxy;
2: aload 0
bipush 15
anewarray java.nio.ByteBuffer
putfield org.apache.cassandra.io.util.MmappedRegions$State.buffers:[Ljava/nio/ByteBuffer;
3: aload 0
bipush 15
newarray 11
putfield org.apache.cassandra.io.util.MmappedRegions$State.offsets:[J
4: aload 0
lconst_0
putfield org.apache.cassandra.io.util.MmappedRegions$State.length:J
5: aload 0
iconst_m1
putfield org.apache.cassandra.io.util.MmappedRegions$State.last:I
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/io/util/MmappedRegions$State;
0 7 1 channel Lorg/apache/cassandra/io/util/ChannelProxy;
MethodParameters:
Name Flags
channel
private void <init>(org.apache.cassandra.io.util.MmappedRegions$State);
descriptor: (Lorg/apache/cassandra/io/util/MmappedRegions$State;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
getfield org.apache.cassandra.io.util.MmappedRegions$State.channel:Lorg/apache/cassandra/io/util/ChannelProxy;
putfield org.apache.cassandra.io.util.MmappedRegions$State.channel:Lorg/apache/cassandra/io/util/ChannelProxy;
2: aload 0
aload 1
getfield org.apache.cassandra.io.util.MmappedRegions$State.buffers:[Ljava/nio/ByteBuffer;
putfield org.apache.cassandra.io.util.MmappedRegions$State.buffers:[Ljava/nio/ByteBuffer;
3: aload 0
aload 1
getfield org.apache.cassandra.io.util.MmappedRegions$State.offsets:[J
putfield org.apache.cassandra.io.util.MmappedRegions$State.offsets:[J
4: aload 0
aload 1
getfield org.apache.cassandra.io.util.MmappedRegions$State.length:J
putfield org.apache.cassandra.io.util.MmappedRegions$State.length:J
5: aload 0
aload 1
getfield org.apache.cassandra.io.util.MmappedRegions$State.last:I
putfield org.apache.cassandra.io.util.MmappedRegions$State.last:I
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/io/util/MmappedRegions$State;
0 7 1 original Lorg/apache/cassandra/io/util/MmappedRegions$State;
MethodParameters:
Name Flags
original
private boolean isEmpty();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.io.util.MmappedRegions$State.last:I
ifge 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/io/util/MmappedRegions$State;
private boolean isValid(org.apache.cassandra.io.util.ChannelProxy);
descriptor: (Lorg/apache/cassandra/io/util/ChannelProxy;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.io.util.MmappedRegions$State.channel:Lorg/apache/cassandra/io/util/ChannelProxy;
invokevirtual org.apache.cassandra.io.util.ChannelProxy.filePath:()Ljava/lang/String;
aload 1
invokevirtual org.apache.cassandra.io.util.ChannelProxy.filePath:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/io/util/MmappedRegions$State;
0 1 1 channel Lorg/apache/cassandra/io/util/ChannelProxy;
MethodParameters:
Name Flags
channel
private org.apache.cassandra.io.util.MmappedRegions$Region floor(long);
descriptor: (J)Lorg/apache/cassandra/io/util/MmappedRegions$Region;
flags: (0x0002) ACC_PRIVATE
Code:
stack=8, locals=4, args_size=2
start local 0 start local 1 0: getstatic org.apache.cassandra.io.util.MmappedRegions$State.$assertionsDisabled:Z
ifne 2
lconst_0
lload 1
lcmp
ifgt 1
lload 1
aload 0
getfield org.apache.cassandra.io.util.MmappedRegions$State.length:J
lcmp
ifle 2
StackMap locals:
StackMap stack:
1: new java.lang.AssertionError
dup
ldc "%d > %d"
iconst_2
anewarray java.lang.Object
dup
iconst_0
lload 1
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
dup
iconst_1
aload 0
getfield org.apache.cassandra.io.util.MmappedRegions$State.length:J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.io.util.MmappedRegions$State.offsets:[J
iconst_0
aload 0
getfield org.apache.cassandra.io.util.MmappedRegions$State.last:I
iconst_1
iadd
lload 1
invokestatic java.util.Arrays.binarySearch:([JIIJ)I
istore 3
start local 3 3: getstatic org.apache.cassandra.io.util.MmappedRegions$State.$assertionsDisabled:Z
ifne 4
iload 3
iconst_m1
if_icmpne 4
new java.lang.AssertionError
dup
ldc "Bad position %d for regions %s, last %d in %s"
iconst_4
anewarray java.lang.Object
dup
iconst_0
lload 1
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
dup
iconst_1
aload 0
getfield org.apache.cassandra.io.util.MmappedRegions$State.offsets:[J
invokestatic java.util.Arrays.toString:([J)Ljava/lang/String;
aastore
dup
iconst_2
aload 0
getfield org.apache.cassandra.io.util.MmappedRegions$State.last:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_3
aload 0
getfield org.apache.cassandra.io.util.MmappedRegions$State.channel:Lorg/apache/cassandra/io/util/ChannelProxy;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
4: StackMap locals: int
StackMap stack:
iload 3
ifge 6
5: iload 3
iconst_2
iadd
ineg
istore 3
6: StackMap locals:
StackMap stack:
new org.apache.cassandra.io.util.MmappedRegions$Region
dup
aload 0
getfield org.apache.cassandra.io.util.MmappedRegions$State.offsets:[J
iload 3
laload
aload 0
getfield org.apache.cassandra.io.util.MmappedRegions$State.buffers:[Ljava/nio/ByteBuffer;
iload 3
aaload
invokespecial org.apache.cassandra.io.util.MmappedRegions$Region.<init>:(JLjava/nio/ByteBuffer;)V
areturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/io/util/MmappedRegions$State;
0 7 1 position J
3 7 3 idx I
MethodParameters:
Name Flags
position
private long getPosition();
descriptor: ()J
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.io.util.MmappedRegions$State.last:I
ifge 1
lconst_0
goto 2
StackMap locals:
StackMap stack:
1: aload 0
getfield org.apache.cassandra.io.util.MmappedRegions$State.offsets:[J
aload 0
getfield org.apache.cassandra.io.util.MmappedRegions$State.last:I
laload
aload 0
getfield org.apache.cassandra.io.util.MmappedRegions$State.buffers:[Ljava/nio/ByteBuffer;
aload 0
getfield org.apache.cassandra.io.util.MmappedRegions$State.last:I
aaload
invokevirtual java.nio.ByteBuffer.capacity:()I
i2l
ladd
StackMap locals:
StackMap stack: long
2: lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/io/util/MmappedRegions$State;
private void add(long, long);
descriptor: (JJ)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=6, args_size=3
start local 0 start local 1 start local 3 0: aload 0
getfield org.apache.cassandra.io.util.MmappedRegions$State.channel:Lorg/apache/cassandra/io/util/ChannelProxy;
getstatic java.nio.channels.FileChannel$MapMode.READ_ONLY:Ljava/nio/channels/FileChannel$MapMode;
lload 1
lload 3
invokevirtual org.apache.cassandra.io.util.ChannelProxy.map:(Ljava/nio/channels/FileChannel$MapMode;JJ)Ljava/nio/MappedByteBuffer;
astore 5
start local 5 1: aload 0
dup
getfield org.apache.cassandra.io.util.MmappedRegions$State.last:I
iconst_1
iadd
putfield org.apache.cassandra.io.util.MmappedRegions$State.last:I
2: aload 0
getfield org.apache.cassandra.io.util.MmappedRegions$State.last:I
aload 0
getfield org.apache.cassandra.io.util.MmappedRegions$State.offsets:[J
arraylength
if_icmpne 5
3: aload 0
aload 0
getfield org.apache.cassandra.io.util.MmappedRegions$State.offsets:[J
aload 0
getfield org.apache.cassandra.io.util.MmappedRegions$State.offsets:[J
arraylength
bipush 15
iadd
invokestatic java.util.Arrays.copyOf:([JI)[J
putfield org.apache.cassandra.io.util.MmappedRegions$State.offsets:[J
4: aload 0
aload 0
getfield org.apache.cassandra.io.util.MmappedRegions$State.buffers:[Ljava/nio/ByteBuffer;
aload 0
getfield org.apache.cassandra.io.util.MmappedRegions$State.buffers:[Ljava/nio/ByteBuffer;
arraylength
bipush 15
iadd
invokestatic java.util.Arrays.copyOf:([Ljava/lang/Object;I)[Ljava/lang/Object;
checkcast java.nio.ByteBuffer[]
putfield org.apache.cassandra.io.util.MmappedRegions$State.buffers:[Ljava/nio/ByteBuffer;
5: StackMap locals: java.nio.ByteBuffer
StackMap stack:
aload 0
getfield org.apache.cassandra.io.util.MmappedRegions$State.offsets:[J
aload 0
getfield org.apache.cassandra.io.util.MmappedRegions$State.last:I
lload 1
lastore
6: aload 0
getfield org.apache.cassandra.io.util.MmappedRegions$State.buffers:[Ljava/nio/ByteBuffer;
aload 0
getfield org.apache.cassandra.io.util.MmappedRegions$State.last:I
aload 5
aastore
7: return
end local 5 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/cassandra/io/util/MmappedRegions$State;
0 8 1 pos J
0 8 3 size J
1 8 5 buffer Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
pos
size
private java.lang.Throwable close(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)Ljava/lang/Throwable;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.io.util.MmappedRegions$State.channel:Lorg/apache/cassandra/io/util/ChannelProxy;
aload 1
invokevirtual org.apache.cassandra.io.util.ChannelProxy.close:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
astore 1
1: getstatic org.apache.cassandra.io.util.FileUtils.isCleanerAvailable:Z
ifne 3
2: aload 1
areturn
3: StackMap locals:
StackMap stack:
aload 1
aload 0
getfield org.apache.cassandra.io.util.MmappedRegions$State.channel:Lorg/apache/cassandra/io/util/ChannelProxy;
invokevirtual org.apache.cassandra.io.util.ChannelProxy.filePath:()Ljava/lang/String;
getstatic org.apache.cassandra.utils.Throwables$FileOpType.READ:Lorg/apache/cassandra/utils/Throwables$FileOpType;
4: aload 0
getfield org.apache.cassandra.io.util.MmappedRegions$State.buffers:[Ljava/nio/ByteBuffer;
invokestatic java.util.stream.Stream.of:([Ljava/lang/Object;)Ljava/util/stream/Stream;
5: invokedynamic apply()Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
org/apache/cassandra/io/util/MmappedRegions$State.lambda$0(Ljava/nio/ByteBuffer;)Lorg/apache/cassandra/utils/Throwables$DiscreteAction; (6)
(Ljava/nio/ByteBuffer;)Lorg/apache/cassandra/utils/Throwables$DiscreteAction;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
6: invokestatic org.apache.cassandra.utils.Throwables.perform:(Ljava/lang/Throwable;Ljava/lang/String;Lorg/apache/cassandra/utils/Throwables$FileOpType;Ljava/util/stream/Stream;)Ljava/lang/Throwable;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/io/util/MmappedRegions$State;
0 7 1 accumulate Ljava/lang/Throwable;
MethodParameters:
Name Flags
accumulate
private static org.apache.cassandra.utils.Throwables$DiscreteAction lambda$0(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)Lorg/apache/cassandra/utils/Throwables$DiscreteAction;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokedynamic perform(Ljava/nio/ByteBuffer;)Lorg/apache/cassandra/utils/Throwables$DiscreteAction;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()V
org/apache/cassandra/io/util/MmappedRegions$State.lambda$1(Ljava/nio/ByteBuffer;)V (6)
()V
1: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 buffer Ljava/nio/ByteBuffer;
private static void lambda$1(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
ifnull 2
1: aload 0
invokestatic org.apache.cassandra.io.util.FileUtils.clean:(Ljava/nio/ByteBuffer;)V
2: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.io.IOException
}
SourceFile: "MmappedRegions.java"
NestHost: org.apache.cassandra.io.util.MmappedRegions
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public MapMode = java.nio.channels.FileChannel$MapMode of java.nio.channels.FileChannel
public final Region = org.apache.cassandra.io.util.MmappedRegions$Region of org.apache.cassandra.io.util.MmappedRegions
private final State = org.apache.cassandra.io.util.MmappedRegions$State of org.apache.cassandra.io.util.MmappedRegions
public abstract DiscreteAction = org.apache.cassandra.utils.Throwables$DiscreteAction of org.apache.cassandra.utils.Throwables
public final FileOpType = org.apache.cassandra.utils.Throwables$FileOpType of org.apache.cassandra.utils.Throwables