public class org.apache.cassandra.db.commitlog.MemoryMappedSegment extends org.apache.cassandra.db.commitlog.CommitLogSegment
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.db.commitlog.MemoryMappedSegment
super_class: org.apache.cassandra.db.commitlog.CommitLogSegment
{
void <init>(org.apache.cassandra.db.commitlog.CommitLog, org.apache.cassandra.db.commitlog.AbstractCommitLogSegmentManager);
descriptor: (Lorg/apache/cassandra/db/commitlog/CommitLog;Lorg/apache/cassandra/db/commitlog/AbstractCommitLogSegmentManager;)V
flags: (0x0000)
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokespecial org.apache.cassandra.db.commitlog.CommitLogSegment.<init>:(Lorg/apache/cassandra/db/commitlog/CommitLog;Lorg/apache/cassandra/db/commitlog/AbstractCommitLogSegmentManager;)V
1: aload 0
getfield org.apache.cassandra.db.commitlog.MemoryMappedSegment.buffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.position:()I
istore 3
start local 3 2: aload 0
getfield org.apache.cassandra.db.commitlog.MemoryMappedSegment.buffer:Ljava/nio/ByteBuffer;
iload 3
iconst_0
iadd
iconst_0
invokevirtual java.nio.ByteBuffer.putInt:(II)Ljava/nio/ByteBuffer;
pop
3: aload 0
getfield org.apache.cassandra.db.commitlog.MemoryMappedSegment.buffer:Ljava/nio/ByteBuffer;
iload 3
iconst_4
iadd
iconst_0
invokevirtual java.nio.ByteBuffer.putInt:(II)Ljava/nio/ByteBuffer;
pop
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/db/commitlog/MemoryMappedSegment;
0 5 1 commitLog Lorg/apache/cassandra/db/commitlog/CommitLog;
0 5 2 manager Lorg/apache/cassandra/db/commitlog/AbstractCommitLogSegmentManager;
2 5 3 firstSync I
MethodParameters:
Name Flags
commitLog
manager
java.nio.ByteBuffer createBuffer(org.apache.cassandra.db.commitlog.CommitLog);
descriptor: (Lorg/apache/cassandra/db/commitlog/CommitLog;)Ljava/nio/ByteBuffer;
flags: (0x0000)
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.db.commitlog.MemoryMappedSegment.channel:Ljava/nio/channels/FileChannel;
getstatic java.nio.channels.FileChannel$MapMode.READ_WRITE:Ljava/nio/channels/FileChannel$MapMode;
lconst_0
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getCommitLogSegmentSize:()I
i2l
invokevirtual java.nio.channels.FileChannel.map:(Ljava/nio/channels/FileChannel$MapMode;JJ)Ljava/nio/MappedByteBuffer;
astore 2
start local 2 1: aload 0
getfield org.apache.cassandra.db.commitlog.MemoryMappedSegment.manager:Lorg/apache/cassandra/db/commitlog/AbstractCommitLogSegmentManager;
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getCommitLogSegmentSize:()I
i2l
invokevirtual org.apache.cassandra.db.commitlog.AbstractCommitLogSegmentManager.addSize:(J)V
2: aload 2
3: areturn
end local 2 4: StackMap locals:
StackMap stack: java.io.IOException
astore 2
start local 2 5: new org.apache.cassandra.io.FSWriteError
dup
aload 2
aload 0
getfield org.apache.cassandra.db.commitlog.MemoryMappedSegment.logFile:Ljava/io/File;
invokespecial org.apache.cassandra.io.FSWriteError.<init>:(Ljava/lang/Throwable;Ljava/io/File;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/db/commitlog/MemoryMappedSegment;
0 6 1 commitLog Lorg/apache/cassandra/db/commitlog/CommitLog;
1 4 2 mappedFile Ljava/nio/MappedByteBuffer;
5 6 2 e Ljava/io/IOException;
Exception table:
from to target type
0 3 4 Class java.io.IOException
MethodParameters:
Name Flags
commitLog
void write(int, int);
descriptor: (II)V
flags: (0x0000)
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iload 2
aload 0
getfield org.apache.cassandra.db.commitlog.MemoryMappedSegment.buffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.capacity:()I
bipush 8
isub
if_icmpgt 3
1: aload 0
getfield org.apache.cassandra.db.commitlog.MemoryMappedSegment.buffer:Ljava/nio/ByteBuffer;
iload 2
iconst_0
invokevirtual java.nio.ByteBuffer.putInt:(II)Ljava/nio/ByteBuffer;
pop
2: aload 0
getfield org.apache.cassandra.db.commitlog.MemoryMappedSegment.buffer:Ljava/nio/ByteBuffer;
iload 2
iconst_4
iadd
iconst_0
invokevirtual java.nio.ByteBuffer.putInt:(II)Ljava/nio/ByteBuffer;
pop
3: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.db.commitlog.MemoryMappedSegment.id:J
aload 0
getfield org.apache.cassandra.db.commitlog.MemoryMappedSegment.buffer:Ljava/nio/ByteBuffer;
iload 1
iload 1
iload 2
invokestatic org.apache.cassandra.db.commitlog.MemoryMappedSegment.writeSyncMarker:(JLjava/nio/ByteBuffer;III)V
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/db/commitlog/MemoryMappedSegment;
0 5 1 startMarker I
0 5 2 nextMarker I
MethodParameters:
Name Flags
startMarker
nextMarker
protected void flush(int, int);
descriptor: (II)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.apache.cassandra.db.commitlog.MemoryMappedSegment.buffer:Ljava/nio/ByteBuffer;
checkcast java.nio.MappedByteBuffer
invokestatic org.apache.cassandra.utils.SyncUtil.force:(Ljava/nio/MappedByteBuffer;)Ljava/nio/MappedByteBuffer;
pop
1: goto 4
2: StackMap locals:
StackMap stack: java.lang.Exception
astore 3
start local 3 3: new org.apache.cassandra.io.FSWriteError
dup
aload 3
aload 0
invokevirtual org.apache.cassandra.db.commitlog.MemoryMappedSegment.getPath:()Ljava/lang/String;
invokespecial org.apache.cassandra.io.FSWriteError.<init>:(Ljava/lang/Throwable;Ljava/lang/String;)V
athrow
end local 3 4: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.db.commitlog.MemoryMappedSegment.fd:I
iload 1
i2l
iload 2
aload 0
getfield org.apache.cassandra.db.commitlog.MemoryMappedSegment.logFile:Ljava/io/File;
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
invokestatic org.apache.cassandra.utils.NativeLibrary.trySkipCache:(IJILjava/lang/String;)V
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/db/commitlog/MemoryMappedSegment;
0 6 1 startMarker I
0 6 2 nextMarker I
3 4 3 e Ljava/lang/Exception;
Exception table:
from to target type
0 1 2 Class java.lang.Exception
MethodParameters:
Name Flags
startMarker
nextMarker
public long onDiskSize();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: invokestatic org.apache.cassandra.config.DatabaseDescriptor.getCommitLogSegmentSize:()I
i2l
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/commitlog/MemoryMappedSegment;
protected void internalClose();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: getstatic org.apache.cassandra.io.util.FileUtils.isCleanerAvailable:Z
ifeq 2
1: aload 0
getfield org.apache.cassandra.db.commitlog.MemoryMappedSegment.buffer:Ljava/nio/ByteBuffer;
invokestatic org.apache.cassandra.io.util.FileUtils.clean:(Ljava/nio/ByteBuffer;)V
2: StackMap locals:
StackMap stack:
aload 0
invokespecial org.apache.cassandra.db.commitlog.CommitLogSegment.internalClose:()V
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/db/commitlog/MemoryMappedSegment;
}
SourceFile: "MemoryMappedSegment.java"
InnerClasses:
public MapMode = java.nio.channels.FileChannel$MapMode of java.nio.channels.FileChannel