public class sun.rmi.log.ReliableLog
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.rmi.log.ReliableLog
super_class: java.lang.Object
{
public static final int PreferredMajorVersion;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 0
public static final int PreferredMinorVersion;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 2
private boolean Debug;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private static java.lang.String snapshotPrefix;
descriptor: Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static java.lang.String logfilePrefix;
descriptor: Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static java.lang.String versionFile;
descriptor: Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static java.lang.String newVersionFile;
descriptor: Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static int intBytes;
descriptor: I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static long diskPageSize;
descriptor: J
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private java.io.File dir;
descriptor: Ljava/io/File;
flags: (0x0002) ACC_PRIVATE
private int version;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private java.lang.String logName;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private sun.rmi.log.ReliableLog$LogFile log;
descriptor: Lsun/rmi/log/ReliableLog$LogFile;
flags: (0x0002) ACC_PRIVATE
private long snapshotBytes;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private long logBytes;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private int logEntries;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private long lastSnapshot;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private long lastLog;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private sun.rmi.log.LogHandler handler;
descriptor: Lsun/rmi/log/LogHandler;
flags: (0x0002) ACC_PRIVATE
private final byte[] intBuf;
descriptor: [B
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private int majorFormatVersion;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int minorFormatVersion;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private static final java.lang.reflect.Constructor<? extends sun.rmi.log.ReliableLog$LogFile> logClassConstructor;
descriptor: Ljava/lang/reflect/Constructor;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/lang/reflect/Constructor<+Lsun/rmi/log/ReliableLog$LogFile;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc "Snapshot."
putstatic sun.rmi.log.ReliableLog.snapshotPrefix:Ljava/lang/String;
1: ldc "Logfile."
putstatic sun.rmi.log.ReliableLog.logfilePrefix:Ljava/lang/String;
2: ldc "Version_Number"
putstatic sun.rmi.log.ReliableLog.versionFile:Ljava/lang/String;
3: ldc "New_Version_Number"
putstatic sun.rmi.log.ReliableLog.newVersionFile:Ljava/lang/String;
4: iconst_4
putstatic sun.rmi.log.ReliableLog.intBytes:I
5: ldc 512
putstatic sun.rmi.log.ReliableLog.diskPageSize:J
6: invokestatic sun.rmi.log.ReliableLog.getLogClassConstructor:()Ljava/lang/reflect/Constructor;
putstatic sun.rmi.log.ReliableLog.logClassConstructor:Ljava/lang/reflect/Constructor;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.lang.String, sun.rmi.log.LogHandler, boolean);
descriptor: (Ljava/lang/String;Lsun/rmi/log/LogHandler;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield sun.rmi.log.ReliableLog.Debug:Z
2: aload 0
iconst_0
putfield sun.rmi.log.ReliableLog.version:I
3: aload 0
aconst_null
putfield sun.rmi.log.ReliableLog.logName:Ljava/lang/String;
4: aload 0
aconst_null
putfield sun.rmi.log.ReliableLog.log:Lsun/rmi/log/ReliableLog$LogFile;
5: aload 0
lconst_0
putfield sun.rmi.log.ReliableLog.snapshotBytes:J
6: aload 0
lconst_0
putfield sun.rmi.log.ReliableLog.logBytes:J
7: aload 0
iconst_0
putfield sun.rmi.log.ReliableLog.logEntries:I
8: aload 0
lconst_0
putfield sun.rmi.log.ReliableLog.lastSnapshot:J
9: aload 0
lconst_0
putfield sun.rmi.log.ReliableLog.lastLog:J
10: aload 0
iconst_4
newarray 8
putfield sun.rmi.log.ReliableLog.intBuf:[B
11: aload 0
iconst_0
putfield sun.rmi.log.ReliableLog.majorFormatVersion:I
12: aload 0
iconst_0
putfield sun.rmi.log.ReliableLog.minorFormatVersion:I
13: aload 0
14: invokedynamic run()Ljava/security/PrivilegedAction;
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;
sun/rmi/log/ReliableLog.lambda$0()Ljava/lang/Boolean; (6)
()Ljava/lang/Boolean;
15: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
putfield sun.rmi.log.ReliableLog.Debug:Z
16: aload 0
new java.io.File
dup
aload 1
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
putfield sun.rmi.log.ReliableLog.dir:Ljava/io/File;
17: aload 0
getfield sun.rmi.log.ReliableLog.dir:Ljava/io/File;
invokevirtual java.io.File.exists:()Z
ifeq 18
aload 0
getfield sun.rmi.log.ReliableLog.dir:Ljava/io/File;
invokevirtual java.io.File.isDirectory:()Z
ifne 22
18: StackMap locals: sun.rmi.log.ReliableLog java.lang.String sun.rmi.log.LogHandler int
StackMap stack:
aload 0
getfield sun.rmi.log.ReliableLog.dir:Ljava/io/File;
invokevirtual java.io.File.mkdir:()Z
ifne 22
19: new java.io.IOException
dup
new java.lang.StringBuilder
dup
ldc "could not create directory for log: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
20: aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
21: invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
22: StackMap locals:
StackMap stack:
aload 0
aload 2
putfield sun.rmi.log.ReliableLog.handler:Lsun/rmi/log/LogHandler;
23: aload 0
lconst_0
putfield sun.rmi.log.ReliableLog.lastSnapshot:J
24: aload 0
lconst_0
putfield sun.rmi.log.ReliableLog.lastLog:J
25: aload 0
invokevirtual sun.rmi.log.ReliableLog.getVersion:()V
26: aload 0
getfield sun.rmi.log.ReliableLog.version:I
ifne 35
27: aload 0
aload 2
invokevirtual sun.rmi.log.LogHandler.initialSnapshot:()Ljava/lang/Object;
invokevirtual sun.rmi.log.ReliableLog.snapshot:(Ljava/lang/Object;)V
28: goto 35
StackMap locals:
StackMap stack: java.io.IOException
29: astore 4
start local 4 30: aload 4
athrow
end local 4 31: StackMap locals:
StackMap stack: java.lang.Exception
astore 4
start local 4 32: new java.io.IOException
dup
new java.lang.StringBuilder
dup
ldc "initial snapshot failed with exception: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
33: aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
34: invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
end local 4 35: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 36 0 this Lsun/rmi/log/ReliableLog;
0 36 1 dirPath Ljava/lang/String;
0 36 2 handler Lsun/rmi/log/LogHandler;
0 36 3 pad Z
30 31 4 e Ljava/io/IOException;
32 35 4 e Ljava/lang/Exception;
Exception table:
from to target type
27 28 29 Class java.io.IOException
27 28 31 Class java.lang.Exception
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
dirPath
handler
pad
public void <init>(java.lang.String, sun.rmi.log.LogHandler);
descriptor: (Ljava/lang/String;Lsun/rmi/log/LogHandler;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
iconst_0
invokespecial sun.rmi.log.ReliableLog.<init>:(Ljava/lang/String;Lsun/rmi/log/LogHandler;Z)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/rmi/log/ReliableLog;
0 2 1 dirPath Ljava/lang/String;
0 2 2 handler Lsun/rmi/log/LogHandler;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
dirPath
handler
public synchronized java.lang.Object recover();
descriptor: ()Ljava/lang/Object;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=5, locals=7, args_size=1
start local 0 0: aload 0
getfield sun.rmi.log.ReliableLog.Debug:Z
ifeq 2
1: getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "log.debug: recover()"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.rmi.log.ReliableLog.version:I
ifne 4
3: aconst_null
areturn
4: StackMap locals:
StackMap stack:
aload 0
getstatic sun.rmi.log.ReliableLog.snapshotPrefix:Ljava/lang/String;
invokevirtual sun.rmi.log.ReliableLog.versionName:(Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 5: new java.io.File
dup
aload 2
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 3
start local 3 6: new java.io.BufferedInputStream
dup
new java.io.FileInputStream
dup
aload 3
invokespecial java.io.FileInputStream.<init>:(Ljava/io/File;)V
invokespecial java.io.BufferedInputStream.<init>:(Ljava/io/InputStream;)V
7: astore 4
start local 4 8: aload 0
getfield sun.rmi.log.ReliableLog.Debug:Z
ifeq 10
9: getstatic java.lang.System.err:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "log.debug: recovering from "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
10: StackMap locals: sun.rmi.log.ReliableLog top java.lang.String java.io.File java.io.InputStream
StackMap stack:
aload 0
getfield sun.rmi.log.ReliableLog.handler:Lsun/rmi/log/LogHandler;
aload 4
invokevirtual sun.rmi.log.LogHandler.recover:(Ljava/io/InputStream;)Ljava/lang/Object;
astore 1
start local 1 11: goto 20
end local 1 StackMap locals:
StackMap stack: java.io.IOException
12: astore 5
start local 5 13: aload 5
athrow
end local 5 14: StackMap locals:
StackMap stack: java.lang.Exception
astore 5
start local 5 15: aload 0
getfield sun.rmi.log.ReliableLog.Debug:Z
ifeq 17
16: getstatic java.lang.System.err:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "log.debug: recovery failed: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
17: StackMap locals: java.lang.Exception
StackMap stack:
new java.io.IOException
dup
new java.lang.StringBuilder
dup
ldc "log recover failed with exception: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
18: aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
19: invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
end local 5 start local 1 20: StackMap locals: sun.rmi.log.ReliableLog java.lang.Object java.lang.String java.io.File java.io.InputStream
StackMap stack:
aload 0
aload 3
invokevirtual java.io.File.length:()J
putfield sun.rmi.log.ReliableLog.snapshotBytes:J
21: goto 25
end local 1 StackMap locals: sun.rmi.log.ReliableLog top java.lang.String java.io.File java.io.InputStream
StackMap stack: java.lang.Throwable
22: astore 6
23: aload 4
invokevirtual java.io.InputStream.close:()V
24: aload 6
athrow
start local 1 25: StackMap locals: sun.rmi.log.ReliableLog java.lang.Object java.lang.String java.io.File java.io.InputStream
StackMap stack:
aload 4
invokevirtual java.io.InputStream.close:()V
26: aload 0
aload 1
invokevirtual sun.rmi.log.ReliableLog.recoverUpdates:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 this Lsun/rmi/log/ReliableLog;
11 12 1 snapshot Ljava/lang/Object;
20 22 1 snapshot Ljava/lang/Object;
25 27 1 snapshot Ljava/lang/Object;
5 27 2 fname Ljava/lang/String;
6 27 3 snapshotFile Ljava/io/File;
8 27 4 in Ljava/io/InputStream;
13 14 5 e Ljava/io/IOException;
15 20 5 e Ljava/lang/Exception;
Exception table:
from to target type
10 11 12 Class java.io.IOException
10 11 14 Class java.lang.Exception
10 22 22 any
Exceptions:
throws java.io.IOException
public synchronized void update(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_1
invokevirtual sun.rmi.log.ReliableLog.update:(Ljava/lang/Object;Z)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/rmi/log/ReliableLog;
0 2 1 value Ljava/lang/Object;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
value
public synchronized void update(java.lang.Object, boolean);
descriptor: (Ljava/lang/Object;Z)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=9, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield sun.rmi.log.ReliableLog.log:Lsun/rmi/log/ReliableLog$LogFile;
ifnonnull 2
1: new java.io.IOException
dup
ldc "log is inaccessible, it may have been corrupted or closed"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.rmi.log.ReliableLog.log:Lsun/rmi/log/ReliableLog$LogFile;
invokevirtual sun.rmi.log.ReliableLog$LogFile.getFilePointer:()J
lstore 3
start local 3 3: aload 0
getfield sun.rmi.log.ReliableLog.log:Lsun/rmi/log/ReliableLog$LogFile;
lload 3
invokevirtual sun.rmi.log.ReliableLog$LogFile.checkSpansBoundary:(J)Z
istore 5
start local 5 4: aload 0
aload 0
getfield sun.rmi.log.ReliableLog.log:Lsun/rmi/log/ReliableLog$LogFile;
iload 5
ifeq 5
ldc -2147483648
goto 6
StackMap locals: sun.rmi.log.ReliableLog java.lang.Object int long int
StackMap stack: sun.rmi.log.ReliableLog sun.rmi.log.ReliableLog$LogFile
5: iconst_0
StackMap locals: sun.rmi.log.ReliableLog java.lang.Object int long int
StackMap stack: sun.rmi.log.ReliableLog sun.rmi.log.ReliableLog$LogFile int
6: invokevirtual sun.rmi.log.ReliableLog.writeInt:(Ljava/io/DataOutput;I)V
7: aload 0
getfield sun.rmi.log.ReliableLog.handler:Lsun/rmi/log/LogHandler;
new sun.rmi.log.LogOutputStream
dup
aload 0
getfield sun.rmi.log.ReliableLog.log:Lsun/rmi/log/ReliableLog$LogFile;
invokespecial sun.rmi.log.LogOutputStream.<init>:(Ljava/io/RandomAccessFile;)V
aload 1
invokevirtual sun.rmi.log.LogHandler.writeUpdate:(Lsun/rmi/log/LogOutputStream;Ljava/lang/Object;)V
8: goto 14
StackMap locals:
StackMap stack: java.io.IOException
9: astore 6
start local 6 10: aload 6
athrow
end local 6 11: StackMap locals:
StackMap stack: java.lang.Exception
astore 6
start local 6 12: new java.io.IOException
dup
ldc "write update failed"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
aload 6
invokevirtual java.io.IOException.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
13: checkcast java.io.IOException
athrow
end local 6 14: StackMap locals:
StackMap stack:
aload 0
getfield sun.rmi.log.ReliableLog.log:Lsun/rmi/log/ReliableLog$LogFile;
invokevirtual sun.rmi.log.ReliableLog$LogFile.sync:()V
15: aload 0
getfield sun.rmi.log.ReliableLog.log:Lsun/rmi/log/ReliableLog$LogFile;
invokevirtual sun.rmi.log.ReliableLog$LogFile.getFilePointer:()J
lstore 6
start local 6 16: lload 6
lload 3
lsub
getstatic sun.rmi.log.ReliableLog.intBytes:I
i2l
lsub
l2i
istore 8
start local 8 17: aload 0
getfield sun.rmi.log.ReliableLog.log:Lsun/rmi/log/ReliableLog$LogFile;
lload 3
invokevirtual sun.rmi.log.ReliableLog$LogFile.seek:(J)V
18: iload 5
ifeq 25
19: aload 0
aload 0
getfield sun.rmi.log.ReliableLog.log:Lsun/rmi/log/ReliableLog$LogFile;
iload 8
ldc -2147483648
ior
invokevirtual sun.rmi.log.ReliableLog.writeInt:(Ljava/io/DataOutput;I)V
20: aload 0
getfield sun.rmi.log.ReliableLog.log:Lsun/rmi/log/ReliableLog$LogFile;
invokevirtual sun.rmi.log.ReliableLog$LogFile.sync:()V
21: aload 0
getfield sun.rmi.log.ReliableLog.log:Lsun/rmi/log/ReliableLog$LogFile;
lload 3
invokevirtual sun.rmi.log.ReliableLog$LogFile.seek:(J)V
22: aload 0
getfield sun.rmi.log.ReliableLog.log:Lsun/rmi/log/ReliableLog$LogFile;
iload 8
bipush 24
ishr
invokevirtual sun.rmi.log.ReliableLog$LogFile.writeByte:(I)V
23: aload 0
getfield sun.rmi.log.ReliableLog.log:Lsun/rmi/log/ReliableLog$LogFile;
invokevirtual sun.rmi.log.ReliableLog$LogFile.sync:()V
24: goto 27
25: StackMap locals: long int
StackMap stack:
aload 0
aload 0
getfield sun.rmi.log.ReliableLog.log:Lsun/rmi/log/ReliableLog$LogFile;
iload 8
invokevirtual sun.rmi.log.ReliableLog.writeInt:(Ljava/io/DataOutput;I)V
26: aload 0
getfield sun.rmi.log.ReliableLog.log:Lsun/rmi/log/ReliableLog$LogFile;
invokevirtual sun.rmi.log.ReliableLog$LogFile.sync:()V
27: StackMap locals:
StackMap stack:
aload 0
getfield sun.rmi.log.ReliableLog.log:Lsun/rmi/log/ReliableLog$LogFile;
lload 6
invokevirtual sun.rmi.log.ReliableLog$LogFile.seek:(J)V
28: aload 0
lload 6
putfield sun.rmi.log.ReliableLog.logBytes:J
29: aload 0
invokestatic java.lang.System.currentTimeMillis:()J
putfield sun.rmi.log.ReliableLog.lastLog:J
30: aload 0
dup
getfield sun.rmi.log.ReliableLog.logEntries:I
iconst_1
iadd
putfield sun.rmi.log.ReliableLog.logEntries:I
31: return
end local 8 end local 6 end local 5 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 32 0 this Lsun/rmi/log/ReliableLog;
0 32 1 value Ljava/lang/Object;
0 32 2 forceToDisk Z
3 32 3 entryStart J
4 32 5 spansBoundary Z
10 11 6 e Ljava/io/IOException;
12 14 6 e Ljava/lang/Exception;
16 32 6 entryEnd J
17 32 8 updateLen I
Exception table:
from to target type
7 8 9 Class java.io.IOException
7 8 11 Class java.lang.Exception
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
value
forceToDisk
private static java.lang.reflect.Constructor<? extends sun.rmi.log.ReliableLog$LogFile> getLogClassConstructor();
descriptor: ()Ljava/lang/reflect/Constructor;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=3, args_size=0
0: invokedynamic run()Ljava/security/PrivilegedAction;
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;
sun/rmi/log/ReliableLog.lambda$1()Ljava/lang/String; (6)
()Ljava/lang/String;
1: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.String
astore 0
start local 0 2: aload 0
ifnull 13
3: new sun.rmi.log.ReliableLog$1
dup
invokespecial sun.rmi.log.ReliableLog$1.<init>:()V
4: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.ClassLoader
5: astore 1
start local 1 6: aload 1
aload 0
invokevirtual java.lang.ClassLoader.loadClass:(Ljava/lang/String;)Ljava/lang/Class;
ldc Lsun/rmi/log/ReliableLog$LogFile;
invokevirtual java.lang.Class.asSubclass:(Ljava/lang/Class;)Ljava/lang/Class;
7: astore 2
start local 2 8: aload 2
iconst_2
anewarray java.lang.Class
dup
iconst_0
ldc Ljava/lang/String;
aastore
dup
iconst_1
ldc Ljava/lang/String;
aastore
invokevirtual java.lang.Class.getConstructor:([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
9: areturn
end local 2 end local 1 10: StackMap locals: java.lang.String
StackMap stack: java.lang.Exception
astore 1
start local 1 11: getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "Exception occurred:"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
12: aload 1
invokevirtual java.lang.Exception.printStackTrace:()V
end local 1 13: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
2 14 0 logClassName Ljava/lang/String;
6 10 1 loader Ljava/lang/ClassLoader;
8 10 2 cl Ljava/lang/Class<+Lsun/rmi/log/ReliableLog$LogFile;>;
11 13 1 e Ljava/lang/Exception;
Exception table:
from to target type
3 9 10 Class java.lang.Exception
Signature: ()Ljava/lang/reflect/Constructor<+Lsun/rmi/log/ReliableLog$LogFile;>;
public synchronized void snapshot(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=8, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.rmi.log.ReliableLog.version:I
istore 2
start local 2 1: aload 0
invokevirtual sun.rmi.log.ReliableLog.incrVersion:()V
2: aload 0
getstatic sun.rmi.log.ReliableLog.snapshotPrefix:Ljava/lang/String;
invokevirtual sun.rmi.log.ReliableLog.versionName:(Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 3: new java.io.File
dup
aload 3
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 4
start local 4 4: new java.io.FileOutputStream
dup
aload 4
invokespecial java.io.FileOutputStream.<init>:(Ljava/io/File;)V
astore 5
start local 5 5: aload 0
getfield sun.rmi.log.ReliableLog.handler:Lsun/rmi/log/LogHandler;
aload 5
aload 1
invokevirtual sun.rmi.log.LogHandler.snapshot:(Ljava/io/OutputStream;Ljava/lang/Object;)V
6: goto 11
StackMap locals: sun.rmi.log.ReliableLog java.lang.Object int java.lang.String java.io.File java.io.FileOutputStream
StackMap stack: java.io.IOException
7: astore 6
start local 6 8: aload 6
athrow
end local 6 9: StackMap locals:
StackMap stack: java.lang.Exception
astore 6
start local 6 10: new java.io.IOException
dup
ldc "snapshot failed"
aload 6
invokespecial java.io.IOException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 6 11: StackMap locals:
StackMap stack:
aload 0
invokestatic java.lang.System.currentTimeMillis:()J
putfield sun.rmi.log.ReliableLog.lastSnapshot:J
12: goto 17
StackMap locals:
StackMap stack: java.lang.Throwable
13: astore 7
14: aload 5
invokevirtual java.io.FileOutputStream.close:()V
15: aload 0
aload 4
invokevirtual java.io.File.length:()J
putfield sun.rmi.log.ReliableLog.snapshotBytes:J
16: aload 7
athrow
17: StackMap locals:
StackMap stack:
aload 5
invokevirtual java.io.FileOutputStream.close:()V
18: aload 0
aload 4
invokevirtual java.io.File.length:()J
putfield sun.rmi.log.ReliableLog.snapshotBytes:J
19: aload 0
iconst_1
invokevirtual sun.rmi.log.ReliableLog.openLogFile:(Z)V
20: aload 0
iconst_1
invokevirtual sun.rmi.log.ReliableLog.writeVersionFile:(Z)V
21: aload 0
invokevirtual sun.rmi.log.ReliableLog.commitToNewVersion:()V
22: aload 0
iload 2
invokevirtual sun.rmi.log.ReliableLog.deleteSnapshot:(I)V
23: aload 0
iload 2
invokevirtual sun.rmi.log.ReliableLog.deleteLogFile:(I)V
24: return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Lsun/rmi/log/ReliableLog;
0 25 1 value Ljava/lang/Object;
1 25 2 oldVersion I
3 25 3 fname Ljava/lang/String;
4 25 4 snapshotFile Ljava/io/File;
5 25 5 out Ljava/io/FileOutputStream;
8 9 6 e Ljava/io/IOException;
10 11 6 e Ljava/lang/Exception;
Exception table:
from to target type
5 6 7 Class java.io.IOException
5 6 9 Class java.lang.Exception
5 13 13 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
value
public synchronized void close();
descriptor: ()V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.rmi.log.ReliableLog.log:Lsun/rmi/log/ReliableLog$LogFile;
ifnonnull 1
return
1: StackMap locals:
StackMap stack:
aload 0
getfield sun.rmi.log.ReliableLog.log:Lsun/rmi/log/ReliableLog$LogFile;
invokevirtual sun.rmi.log.ReliableLog$LogFile.close:()V
2: goto 6
StackMap locals:
StackMap stack: java.lang.Throwable
3: astore 1
4: aload 0
aconst_null
putfield sun.rmi.log.ReliableLog.log:Lsun/rmi/log/ReliableLog$LogFile;
5: aload 1
athrow
6: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield sun.rmi.log.ReliableLog.log:Lsun/rmi/log/ReliableLog$LogFile;
7: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/rmi/log/ReliableLog;
Exception table:
from to target type
1 3 3 any
Exceptions:
throws java.io.IOException
public long snapshotSize();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.rmi.log.ReliableLog.snapshotBytes:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/rmi/log/ReliableLog;
public long logSize();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.rmi.log.ReliableLog.logBytes:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/rmi/log/ReliableLog;
private void writeInt(java.io.DataOutput, int);
descriptor: (Ljava/io/DataOutput;I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield sun.rmi.log.ReliableLog.intBuf:[B
iconst_0
iload 2
bipush 24
ishr
i2b
bastore
1: aload 0
getfield sun.rmi.log.ReliableLog.intBuf:[B
iconst_1
iload 2
bipush 16
ishr
i2b
bastore
2: aload 0
getfield sun.rmi.log.ReliableLog.intBuf:[B
iconst_2
iload 2
bipush 8
ishr
i2b
bastore
3: aload 0
getfield sun.rmi.log.ReliableLog.intBuf:[B
iconst_3
iload 2
i2b
bastore
4: aload 1
aload 0
getfield sun.rmi.log.ReliableLog.intBuf:[B
invokeinterface java.io.DataOutput.write:([B)V
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/rmi/log/ReliableLog;
0 6 1 out Ljava/io/DataOutput;
0 6 2 val I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
out
val
private java.lang.String fName(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: new java.lang.StringBuilder
dup
aload 0
getfield sun.rmi.log.ReliableLog.dir:Ljava/io/File;
invokevirtual java.io.File.getPath:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
getstatic java.io.File.separator:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/rmi/log/ReliableLog;
0 1 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name
private java.lang.String versionName(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_0
invokevirtual sun.rmi.log.ReliableLog.versionName:(Ljava/lang/String;I)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/rmi/log/ReliableLog;
0 1 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name
private java.lang.String versionName(java.lang.String, int);
descriptor: (Ljava/lang/String;I)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iload 2
ifne 1
aload 0
getfield sun.rmi.log.ReliableLog.version:I
goto 2
StackMap locals:
StackMap stack:
1: iload 2
StackMap locals:
StackMap stack: int
2: istore 2
3: new java.lang.StringBuilder
dup
aload 0
aload 1
invokevirtual sun.rmi.log.ReliableLog.fName:(Ljava/lang/String;)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 2
invokestatic java.lang.String.valueOf:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/rmi/log/ReliableLog;
0 4 1 prefix Ljava/lang/String;
0 4 2 ver I
MethodParameters:
Name Flags
prefix
ver
private void incrVersion();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: StackMap locals:
StackMap stack:
aload 0
dup
getfield sun.rmi.log.ReliableLog.version:I
iconst_1
iadd
putfield sun.rmi.log.ReliableLog.version:I
aload 0
getfield sun.rmi.log.ReliableLog.version:I
ifeq 0
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/rmi/log/ReliableLog;
private void deleteFile(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: new java.io.File
dup
aload 1
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 2
start local 2 1: aload 2
invokevirtual java.io.File.delete:()Z
ifne 3
2: new java.io.IOException
dup
new java.lang.StringBuilder
dup
ldc "couldn't remove file: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: java.io.File
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/rmi/log/ReliableLog;
0 4 1 name Ljava/lang/String;
1 4 2 f Ljava/io/File;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
name
private void deleteNewVersionFile();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
aload 0
getstatic sun.rmi.log.ReliableLog.newVersionFile:Ljava/lang/String;
invokevirtual sun.rmi.log.ReliableLog.fName:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual sun.rmi.log.ReliableLog.deleteFile:(Ljava/lang/String;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/rmi/log/ReliableLog;
Exceptions:
throws java.io.IOException
private void deleteSnapshot(int);
descriptor: (I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifne 1
return
1: StackMap locals:
StackMap stack:
aload 0
aload 0
getstatic sun.rmi.log.ReliableLog.snapshotPrefix:Ljava/lang/String;
iload 1
invokevirtual sun.rmi.log.ReliableLog.versionName:(Ljava/lang/String;I)Ljava/lang/String;
invokevirtual sun.rmi.log.ReliableLog.deleteFile:(Ljava/lang/String;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/rmi/log/ReliableLog;
0 3 1 ver I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
ver
private void deleteLogFile(int);
descriptor: (I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifne 1
return
1: StackMap locals:
StackMap stack:
aload 0
aload 0
getstatic sun.rmi.log.ReliableLog.logfilePrefix:Ljava/lang/String;
iload 1
invokevirtual sun.rmi.log.ReliableLog.versionName:(Ljava/lang/String;I)Ljava/lang/String;
invokevirtual sun.rmi.log.ReliableLog.deleteFile:(Ljava/lang/String;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/rmi/log/ReliableLog;
0 3 1 ver I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
ver
private void openLogFile(boolean);
descriptor: (Z)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual sun.rmi.log.ReliableLog.close:()V
1: goto 3
StackMap locals:
StackMap stack: java.io.IOException
2: pop
3: StackMap locals:
StackMap stack:
aload 0
aload 0
getstatic sun.rmi.log.ReliableLog.logfilePrefix:Ljava/lang/String;
invokevirtual sun.rmi.log.ReliableLog.versionName:(Ljava/lang/String;)Ljava/lang/String;
putfield sun.rmi.log.ReliableLog.logName:Ljava/lang/String;
4: aload 0
getstatic sun.rmi.log.ReliableLog.logClassConstructor:Ljava/lang/reflect/Constructor;
ifnonnull 6
5: new sun.rmi.log.ReliableLog$LogFile
dup
aload 0
getfield sun.rmi.log.ReliableLog.logName:Ljava/lang/String;
ldc "rw"
invokespecial sun.rmi.log.ReliableLog$LogFile.<init>:(Ljava/lang/String;Ljava/lang/String;)V
goto 7
6: StackMap locals:
StackMap stack: sun.rmi.log.ReliableLog
getstatic sun.rmi.log.ReliableLog.logClassConstructor:Ljava/lang/reflect/Constructor;
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield sun.rmi.log.ReliableLog.logName:Ljava/lang/String;
aastore
dup
iconst_1
ldc "rw"
aastore
invokevirtual java.lang.reflect.Constructor.newInstance:([Ljava/lang/Object;)Ljava/lang/Object;
checkcast sun.rmi.log.ReliableLog$LogFile
7: StackMap locals: sun.rmi.log.ReliableLog int
StackMap stack: sun.rmi.log.ReliableLog sun.rmi.log.ReliableLog$LogFile
putfield sun.rmi.log.ReliableLog.log:Lsun/rmi/log/ReliableLog$LogFile;
8: goto 15
StackMap locals:
StackMap stack: java.lang.Exception
9: astore 2
start local 2 10: new java.io.IOException
dup
11: ldc "unable to construct LogFile instance"
12: invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
13: aload 2
invokevirtual java.io.IOException.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
14: checkcast java.io.IOException
athrow
end local 2 15: StackMap locals:
StackMap stack:
iload 1
ifeq 17
16: aload 0
invokevirtual sun.rmi.log.ReliableLog.initializeLogFile:()V
17: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lsun/rmi/log/ReliableLog;
0 18 1 truncate Z
10 15 2 e Ljava/lang/Exception;
Exception table:
from to target type
0 1 2 Class java.io.IOException
4 8 9 Class java.lang.Exception
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
truncate
private void initializeLogFile();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.rmi.log.ReliableLog.log:Lsun/rmi/log/ReliableLog$LogFile;
lconst_0
invokevirtual sun.rmi.log.ReliableLog$LogFile.setLength:(J)V
1: aload 0
iconst_0
putfield sun.rmi.log.ReliableLog.majorFormatVersion:I
2: aload 0
aload 0
getfield sun.rmi.log.ReliableLog.log:Lsun/rmi/log/ReliableLog$LogFile;
iconst_0
invokevirtual sun.rmi.log.ReliableLog.writeInt:(Ljava/io/DataOutput;I)V
3: aload 0
iconst_2
putfield sun.rmi.log.ReliableLog.minorFormatVersion:I
4: aload 0
aload 0
getfield sun.rmi.log.ReliableLog.log:Lsun/rmi/log/ReliableLog$LogFile;
iconst_2
invokevirtual sun.rmi.log.ReliableLog.writeInt:(Ljava/io/DataOutput;I)V
5: aload 0
getstatic sun.rmi.log.ReliableLog.intBytes:I
iconst_2
imul
i2l
putfield sun.rmi.log.ReliableLog.logBytes:J
6: aload 0
iconst_0
putfield sun.rmi.log.ReliableLog.logEntries:I
7: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/rmi/log/ReliableLog;
Exceptions:
throws java.io.IOException
private void writeVersionFile(boolean);
descriptor: (Z)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=7, args_size=2
start local 0 start local 1 0: iload 1
ifeq 3
1: getstatic sun.rmi.log.ReliableLog.newVersionFile:Ljava/lang/String;
astore 2
start local 2 2: goto 4
end local 2 3: StackMap locals:
StackMap stack:
getstatic sun.rmi.log.ReliableLog.versionFile:Ljava/lang/String;
astore 2
start local 2 4: StackMap locals: java.lang.String
StackMap stack:
aconst_null
astore 3
aconst_null
astore 4
5: new java.io.FileOutputStream
dup
aload 0
aload 2
invokevirtual sun.rmi.log.ReliableLog.fName:(Ljava/lang/String;)Ljava/lang/String;
invokespecial java.io.FileOutputStream.<init>:(Ljava/lang/String;)V
astore 5
start local 5 6: new java.io.DataOutputStream
dup
aload 5
invokespecial java.io.DataOutputStream.<init>:(Ljava/io/OutputStream;)V
astore 6
start local 6 7: aload 0
aload 6
aload 0
getfield sun.rmi.log.ReliableLog.version:I
invokevirtual sun.rmi.log.ReliableLog.writeInt:(Ljava/io/DataOutput;I)V
8: aload 6
ifnull 11
aload 6
invokevirtual java.io.DataOutputStream.close:()V
goto 11
StackMap locals: sun.rmi.log.ReliableLog int java.lang.String java.lang.Throwable java.lang.Throwable java.io.FileOutputStream java.io.DataOutputStream
StackMap stack: java.lang.Throwable
9: astore 3
aload 6
ifnull 10
aload 6
invokevirtual java.io.DataOutputStream.close:()V
end local 6 StackMap locals:
StackMap stack:
10: aload 3
athrow
StackMap locals:
StackMap stack:
11: aload 5
ifnull 19
aload 5
invokevirtual java.io.FileOutputStream.close:()V
goto 19
StackMap locals:
StackMap stack: java.lang.Throwable
12: astore 4
aload 3
ifnonnull 13
aload 4
astore 3
goto 14
StackMap locals:
StackMap stack:
13: aload 3
aload 4
if_acmpeq 14
aload 3
aload 4
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
14: aload 5
ifnull 15
aload 5
invokevirtual java.io.FileOutputStream.close:()V
end local 5 StackMap locals:
StackMap stack:
15: aload 3
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
16: astore 4
aload 3
ifnonnull 17
aload 4
astore 3
goto 18
StackMap locals:
StackMap stack:
17: aload 3
aload 4
if_acmpeq 18
aload 3
aload 4
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
18: aload 3
athrow
19: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lsun/rmi/log/ReliableLog;
0 20 1 newVersion Z
2 3 2 name Ljava/lang/String;
4 20 2 name Ljava/lang/String;
6 15 5 fos Ljava/io/FileOutputStream;
7 10 6 out Ljava/io/DataOutputStream;
Exception table:
from to target type
7 8 9 any
6 11 12 any
5 16 16 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
newVersion
private void createFirstVersion();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
putfield sun.rmi.log.ReliableLog.version:I
1: aload 0
iconst_0
invokevirtual sun.rmi.log.ReliableLog.writeVersionFile:(Z)V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/rmi/log/ReliableLog;
Exceptions:
throws java.io.IOException
private void commitToNewVersion();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
invokevirtual sun.rmi.log.ReliableLog.writeVersionFile:(Z)V
1: aload 0
invokevirtual sun.rmi.log.ReliableLog.deleteNewVersionFile:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/rmi/log/ReliableLog;
Exceptions:
throws java.io.IOException
private int readVersion(java.lang.String);
descriptor: (Ljava/lang/String;)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
aconst_null
astore 3
1: new java.io.DataInputStream
dup
2: new java.io.FileInputStream
dup
aload 1
invokespecial java.io.FileInputStream.<init>:(Ljava/lang/String;)V
3: invokespecial java.io.DataInputStream.<init>:(Ljava/io/InputStream;)V
astore 4
start local 4 4: aload 4
invokevirtual java.io.DataInputStream.readInt:()I
5: aload 4
ifnull 6
aload 4
invokevirtual java.io.DataInputStream.close:()V
6: StackMap locals: sun.rmi.log.ReliableLog java.lang.String java.lang.Throwable java.lang.Throwable java.io.DataInputStream
StackMap stack: int
ireturn
StackMap locals:
StackMap stack: java.lang.Throwable
7: astore 2
8: aload 4
ifnull 9
aload 4
invokevirtual java.io.DataInputStream.close:()V
end local 4 StackMap locals:
StackMap stack:
9: aload 2
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
10: astore 3
aload 2
ifnonnull 11
aload 3
astore 2
goto 12
StackMap locals:
StackMap stack:
11: aload 2
aload 3
if_acmpeq 12
aload 2
aload 3
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
12: aload 2
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lsun/rmi/log/ReliableLog;
0 13 1 name Ljava/lang/String;
4 9 4 in Ljava/io/DataInputStream;
Exception table:
from to target type
4 5 7 any
1 6 10 any
7 10 10 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
name
private void getVersion();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
aload 0
aload 0
getstatic sun.rmi.log.ReliableLog.newVersionFile:Ljava/lang/String;
invokevirtual sun.rmi.log.ReliableLog.fName:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual sun.rmi.log.ReliableLog.readVersion:(Ljava/lang/String;)I
putfield sun.rmi.log.ReliableLog.version:I
1: aload 0
invokevirtual sun.rmi.log.ReliableLog.commitToNewVersion:()V
2: goto 11
StackMap locals:
StackMap stack: java.io.IOException
3: pop
4: aload 0
invokevirtual sun.rmi.log.ReliableLog.deleteNewVersionFile:()V
5: goto 7
6: StackMap locals:
StackMap stack: java.io.IOException
pop
7: StackMap locals:
StackMap stack:
aload 0
aload 0
aload 0
getstatic sun.rmi.log.ReliableLog.versionFile:Ljava/lang/String;
invokevirtual sun.rmi.log.ReliableLog.fName:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual sun.rmi.log.ReliableLog.readVersion:(Ljava/lang/String;)I
putfield sun.rmi.log.ReliableLog.version:I
8: goto 11
9: StackMap locals:
StackMap stack: java.io.IOException
pop
10: aload 0
invokevirtual sun.rmi.log.ReliableLog.createFirstVersion:()V
11: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lsun/rmi/log/ReliableLog;
Exception table:
from to target type
0 2 3 Class java.io.IOException
4 5 6 Class java.io.IOException
7 8 9 Class java.io.IOException
Exceptions:
throws java.io.IOException
private java.lang.Object recoverUpdates(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=8, args_size=2
start local 0 start local 1 0: aload 0
lconst_0
putfield sun.rmi.log.ReliableLog.logBytes:J
1: aload 0
iconst_0
putfield sun.rmi.log.ReliableLog.logEntries:I
2: aload 0
getfield sun.rmi.log.ReliableLog.version:I
ifne 3
aload 1
areturn
3: StackMap locals:
StackMap stack:
aload 0
getstatic sun.rmi.log.ReliableLog.logfilePrefix:Ljava/lang/String;
invokevirtual sun.rmi.log.ReliableLog.versionName:(Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 4: new java.io.BufferedInputStream
dup
new java.io.FileInputStream
dup
aload 2
invokespecial java.io.FileInputStream.<init>:(Ljava/lang/String;)V
invokespecial java.io.BufferedInputStream.<init>:(Ljava/io/InputStream;)V
5: astore 3
start local 3 6: new java.io.DataInputStream
dup
aload 3
invokespecial java.io.DataInputStream.<init>:(Ljava/io/InputStream;)V
astore 4
start local 4 7: aload 0
getfield sun.rmi.log.ReliableLog.Debug:Z
ifeq 9
8: getstatic java.lang.System.err:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "log.debug: reading updates from "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
9: StackMap locals: java.lang.String java.io.InputStream java.io.DataInputStream
StackMap stack:
aload 0
aload 4
invokevirtual java.io.DataInputStream.readInt:()I
putfield sun.rmi.log.ReliableLog.majorFormatVersion:I
aload 0
dup
getfield sun.rmi.log.ReliableLog.logBytes:J
getstatic sun.rmi.log.ReliableLog.intBytes:I
i2l
ladd
putfield sun.rmi.log.ReliableLog.logBytes:J
10: aload 0
aload 4
invokevirtual java.io.DataInputStream.readInt:()I
putfield sun.rmi.log.ReliableLog.minorFormatVersion:I
aload 0
dup
getfield sun.rmi.log.ReliableLog.logBytes:J
getstatic sun.rmi.log.ReliableLog.intBytes:I
i2l
ladd
putfield sun.rmi.log.ReliableLog.logBytes:J
11: goto 15
StackMap locals:
StackMap stack: java.io.EOFException
12: pop
13: aload 0
iconst_1
invokevirtual sun.rmi.log.ReliableLog.openLogFile:(Z)V
14: aconst_null
astore 3
15: StackMap locals:
StackMap stack:
aload 0
getfield sun.rmi.log.ReliableLog.majorFormatVersion:I
ifeq 62
16: aload 0
getfield sun.rmi.log.ReliableLog.Debug:Z
ifeq 20
17: getstatic java.lang.System.err:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "log.debug: major version mismatch: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
18: aload 0
getfield sun.rmi.log.ReliableLog.majorFormatVersion:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield sun.rmi.log.ReliableLog.minorFormatVersion:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
19: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
20: StackMap locals:
StackMap stack:
new java.io.IOException
dup
new java.lang.StringBuilder
dup
ldc "Log file "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield sun.rmi.log.ReliableLog.logName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " has a "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
21: ldc "version "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield sun.rmi.log.ReliableLog.majorFormatVersion:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
22: ldc "."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield sun.rmi.log.ReliableLog.minorFormatVersion:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
23: ldc " format, and this implementation "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
24: ldc " understands only version "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
25: iconst_0
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
26: iconst_2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
27: invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
28: StackMap locals:
StackMap stack:
iconst_0
istore 5
start local 5 29: aload 4
invokevirtual java.io.DataInputStream.readInt:()I
istore 5
30: goto 35
StackMap locals: sun.rmi.log.ReliableLog java.lang.Object java.lang.String java.io.InputStream java.io.DataInputStream int
StackMap stack: java.io.EOFException
31: pop
32: aload 0
getfield sun.rmi.log.ReliableLog.Debug:Z
ifeq 68
33: getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "log.debug: log was sync'd cleanly"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
34: goto 68
35: StackMap locals:
StackMap stack:
iload 5
ifgt 43
36: aload 0
getfield sun.rmi.log.ReliableLog.Debug:Z
ifeq 68
37: getstatic java.lang.System.err:Ljava/io/PrintStream;
38: new java.lang.StringBuilder
dup
ldc "log.debug: last update incomplete, updateLen = 0x"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
39: iload 5
invokestatic java.lang.Integer.toHexString:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
40: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
41: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
42: goto 68
43: StackMap locals:
StackMap stack:
aload 3
invokevirtual java.io.InputStream.available:()I
iload 5
if_icmpge 47
44: aload 0
getfield sun.rmi.log.ReliableLog.Debug:Z
ifeq 68
45: getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "log.debug: log was truncated"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
46: goto 68
47: StackMap locals:
StackMap stack:
aload 0
getfield sun.rmi.log.ReliableLog.Debug:Z
ifeq 49
48: getstatic java.lang.System.err:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "log.debug: rdUpdate size "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 5
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
49: StackMap locals:
StackMap stack:
aload 0
getfield sun.rmi.log.ReliableLog.handler:Lsun/rmi/log/LogHandler;
new sun.rmi.log.LogInputStream
dup
aload 3
iload 5
invokespecial sun.rmi.log.LogInputStream.<init>:(Ljava/io/InputStream;I)V
50: aload 1
51: invokevirtual sun.rmi.log.LogHandler.readUpdate:(Lsun/rmi/log/LogInputStream;Ljava/lang/Object;)Ljava/lang/Object;
astore 1
52: goto 60
StackMap locals:
StackMap stack: java.io.IOException
53: astore 6
start local 6 54: aload 6
athrow
end local 6 55: StackMap locals:
StackMap stack: java.lang.Exception
astore 6
start local 6 56: aload 6
invokevirtual java.lang.Exception.printStackTrace:()V
57: new java.io.IOException
dup
new java.lang.StringBuilder
dup
ldc "read update failed with exception: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
58: aload 6
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
59: invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
end local 6 60: StackMap locals:
StackMap stack:
aload 0
dup
getfield sun.rmi.log.ReliableLog.logBytes:J
getstatic sun.rmi.log.ReliableLog.intBytes:I
iload 5
iadd
i2l
ladd
putfield sun.rmi.log.ReliableLog.logBytes:J
61: aload 0
dup
getfield sun.rmi.log.ReliableLog.logEntries:I
iconst_1
iadd
putfield sun.rmi.log.ReliableLog.logEntries:I
end local 5 62: StackMap locals:
StackMap stack:
aload 3
ifnonnull 28
63: goto 68
StackMap locals:
StackMap stack: java.lang.Throwable
64: astore 7
65: aload 3
ifnull 67
66: aload 3
invokevirtual java.io.InputStream.close:()V
67: StackMap locals: sun.rmi.log.ReliableLog java.lang.Object java.lang.String java.io.InputStream java.io.DataInputStream top top java.lang.Throwable
StackMap stack:
aload 7
athrow
68: StackMap locals: sun.rmi.log.ReliableLog java.lang.Object java.lang.String java.io.InputStream java.io.DataInputStream
StackMap stack:
aload 3
ifnull 70
69: aload 3
invokevirtual java.io.InputStream.close:()V
70: StackMap locals:
StackMap stack:
aload 0
getfield sun.rmi.log.ReliableLog.Debug:Z
ifeq 72
71: getstatic java.lang.System.err:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "log.debug: recovered updates: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield sun.rmi.log.ReliableLog.logEntries:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
72: StackMap locals:
StackMap stack:
aload 0
iconst_0
invokevirtual sun.rmi.log.ReliableLog.openLogFile:(Z)V
73: aload 0
getfield sun.rmi.log.ReliableLog.log:Lsun/rmi/log/ReliableLog$LogFile;
ifnonnull 75
74: new java.io.IOException
dup
ldc "rmid's log is inaccessible, it may have been corrupted or closed"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
75: StackMap locals:
StackMap stack:
aload 0
getfield sun.rmi.log.ReliableLog.log:Lsun/rmi/log/ReliableLog$LogFile;
aload 0
getfield sun.rmi.log.ReliableLog.logBytes:J
invokevirtual sun.rmi.log.ReliableLog$LogFile.seek:(J)V
76: aload 0
getfield sun.rmi.log.ReliableLog.log:Lsun/rmi/log/ReliableLog$LogFile;
aload 0
getfield sun.rmi.log.ReliableLog.logBytes:J
invokevirtual sun.rmi.log.ReliableLog$LogFile.setLength:(J)V
77: aload 1
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 78 0 this Lsun/rmi/log/ReliableLog;
0 78 1 state Ljava/lang/Object;
4 78 2 fname Ljava/lang/String;
6 78 3 in Ljava/io/InputStream;
7 78 4 dataIn Ljava/io/DataInputStream;
29 62 5 updateLen I
54 55 6 e Ljava/io/IOException;
56 60 6 e Ljava/lang/Exception;
Exception table:
from to target type
9 11 12 Class java.io.EOFException
29 30 31 Class java.io.EOFException
49 52 53 Class java.io.IOException
49 52 55 Class java.lang.Exception
28 64 64 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
state
private static java.lang.Boolean lambda$0();
descriptor: ()Ljava/lang/Boolean;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=0, args_size=0
0: ldc "sun.rmi.log.debug"
invokestatic java.lang.Boolean.getBoolean:(Ljava/lang/String;)Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
areturn
LocalVariableTable:
Start End Slot Name Signature
private static java.lang.String lambda$1();
descriptor: ()Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=0, args_size=0
0: ldc "sun.rmi.log.class"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "ReliableLog.java"
NestMembers:
sun.rmi.log.ReliableLog$1 sun.rmi.log.ReliableLog$LogFile
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
sun.rmi.log.ReliableLog$1
public LogFile = sun.rmi.log.ReliableLog$LogFile of sun.rmi.log.ReliableLog