class com.sun.tools.hat.internal.parser.MappedReadBuffer implements com.sun.tools.hat.internal.parser.ReadBuffer
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.sun.tools.hat.internal.parser.MappedReadBuffer
super_class: java.lang.Object
{
private java.nio.MappedByteBuffer buf;
descriptor: Ljava/nio/MappedByteBuffer;
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 Lcom/sun/tools/hat/internal/parser/MappedReadBuffer;
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 com.sun.tools.hat.internal.parser.MappedReadBuffer.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(java.nio.MappedByteBuffer);
descriptor: (Ljava/nio/MappedByteBuffer;)V
flags: (0x0000)
Code:
stack=2, 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
putfield com.sun.tools.hat.internal.parser.MappedReadBuffer.buf:Ljava/nio/MappedByteBuffer;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/tools/hat/internal/parser/MappedReadBuffer;
0 3 1 buf Ljava/nio/MappedByteBuffer;
MethodParameters:
Name Flags
buf
static com.sun.tools.hat.internal.parser.ReadBuffer create(java.io.RandomAccessFile);
descriptor: (Ljava/io/RandomAccessFile;)Lcom/sun/tools/hat/internal/parser/ReadBuffer;
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=6, args_size=1
start local 0 0: aload 0
invokevirtual java.io.RandomAccessFile.getChannel:()Ljava/nio/channels/FileChannel;
astore 1
start local 1 1: aload 1
invokevirtual java.nio.channels.FileChannel.size:()J
lstore 2
start local 2 2: invokestatic com.sun.tools.hat.internal.parser.MappedReadBuffer.canUseFileMap:()Z
ifeq 10
lload 2
ldc 2147483647
lcmp
ifgt 10
3: aload 1
getstatic java.nio.channels.FileChannel$MapMode.READ_ONLY:Ljava/nio/channels/FileChannel$MapMode;
lconst_0
lload 2
invokevirtual java.nio.channels.FileChannel.map:(Ljava/nio/channels/FileChannel$MapMode;JJ)Ljava/nio/MappedByteBuffer;
astore 4
start local 4 4: aload 1
invokevirtual java.nio.channels.FileChannel.close:()V
5: new com.sun.tools.hat.internal.parser.MappedReadBuffer
dup
aload 4
invokespecial com.sun.tools.hat.internal.parser.MappedReadBuffer.<init>:(Ljava/nio/MappedByteBuffer;)V
6: areturn
end local 4 7: StackMap locals: java.io.RandomAccessFile java.nio.channels.FileChannel long
StackMap stack: java.io.IOException
astore 5
start local 5 8: aload 5
invokevirtual java.io.IOException.printStackTrace:()V
9: getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "File mapping failed, will use direct read"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
end local 5 10: StackMap locals:
StackMap stack:
new com.sun.tools.hat.internal.parser.FileReadBuffer
dup
aload 0
invokespecial com.sun.tools.hat.internal.parser.FileReadBuffer.<init>:(Ljava/io/RandomAccessFile;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 file Ljava/io/RandomAccessFile;
1 11 1 ch Ljava/nio/channels/FileChannel;
2 11 2 size J
4 7 4 buf Ljava/nio/MappedByteBuffer;
8 10 5 exp Ljava/io/IOException;
Exception table:
from to target type
3 6 7 Class java.io.IOException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
file
private static boolean canUseFileMap();
descriptor: ()Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=0
0: ldc "jhat.disableFileMap"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 0
start local 0 1: aload 0
ifnull 2
aload 0
ldc "false"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 2
iconst_0
ireturn
StackMap locals: java.lang.String
StackMap stack:
2: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 3 0 prop Ljava/lang/String;
private void seek(long);
descriptor: (J)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: getstatic com.sun.tools.hat.internal.parser.MappedReadBuffer.$assertionsDisabled:Z
ifne 1
lload 1
ldc 2147483647
lcmp
ifle 1
new java.lang.AssertionError
dup
ldc "position overflow"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.tools.hat.internal.parser.MappedReadBuffer.buf:Ljava/nio/MappedByteBuffer;
lload 1
l2i
invokevirtual java.nio.MappedByteBuffer.position:(I)Ljava/nio/Buffer;
pop
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/tools/hat/internal/parser/MappedReadBuffer;
0 3 1 pos J
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
pos
public synchronized void get(long, byte[]);
descriptor: (J[B)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 3 0: aload 0
lload 1
invokevirtual com.sun.tools.hat.internal.parser.MappedReadBuffer.seek:(J)V
1: aload 0
getfield com.sun.tools.hat.internal.parser.MappedReadBuffer.buf:Ljava/nio/MappedByteBuffer;
aload 3
invokevirtual java.nio.MappedByteBuffer.get:([B)Ljava/nio/ByteBuffer;
pop
2: return
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/tools/hat/internal/parser/MappedReadBuffer;
0 3 1 pos J
0 3 3 res [B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
pos
res
public synchronized char getChar(long);
descriptor: (J)C
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
lload 1
invokevirtual com.sun.tools.hat.internal.parser.MappedReadBuffer.seek:(J)V
1: aload 0
getfield com.sun.tools.hat.internal.parser.MappedReadBuffer.buf:Ljava/nio/MappedByteBuffer;
invokevirtual java.nio.MappedByteBuffer.getChar:()C
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/tools/hat/internal/parser/MappedReadBuffer;
0 2 1 pos J
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
pos
public synchronized byte getByte(long);
descriptor: (J)B
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
lload 1
invokevirtual com.sun.tools.hat.internal.parser.MappedReadBuffer.seek:(J)V
1: aload 0
getfield com.sun.tools.hat.internal.parser.MappedReadBuffer.buf:Ljava/nio/MappedByteBuffer;
invokevirtual java.nio.MappedByteBuffer.get:()B
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/tools/hat/internal/parser/MappedReadBuffer;
0 2 1 pos J
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
pos
public synchronized short getShort(long);
descriptor: (J)S
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
lload 1
invokevirtual com.sun.tools.hat.internal.parser.MappedReadBuffer.seek:(J)V
1: aload 0
getfield com.sun.tools.hat.internal.parser.MappedReadBuffer.buf:Ljava/nio/MappedByteBuffer;
invokevirtual java.nio.MappedByteBuffer.getShort:()S
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/tools/hat/internal/parser/MappedReadBuffer;
0 2 1 pos J
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
pos
public synchronized int getInt(long);
descriptor: (J)I
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
lload 1
invokevirtual com.sun.tools.hat.internal.parser.MappedReadBuffer.seek:(J)V
1: aload 0
getfield com.sun.tools.hat.internal.parser.MappedReadBuffer.buf:Ljava/nio/MappedByteBuffer;
invokevirtual java.nio.MappedByteBuffer.getInt:()I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/tools/hat/internal/parser/MappedReadBuffer;
0 2 1 pos J
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
pos
public synchronized long getLong(long);
descriptor: (J)J
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
lload 1
invokevirtual com.sun.tools.hat.internal.parser.MappedReadBuffer.seek:(J)V
1: aload 0
getfield com.sun.tools.hat.internal.parser.MappedReadBuffer.buf:Ljava/nio/MappedByteBuffer;
invokevirtual java.nio.MappedByteBuffer.getLong:()J
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/tools/hat/internal/parser/MappedReadBuffer;
0 2 1 pos J
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
pos
}
SourceFile: "MappedReadBuffer.java"
InnerClasses:
public MapMode = java.nio.channels.FileChannel$MapMode of java.nio.channels.FileChannel