public final class jdk.jfr.internal.management.ChunkFilename
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: jdk.jfr.internal.management.ChunkFilename
super_class: java.lang.Object
{
private static final int MAX_CHUNK_NAMES;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 100000
private static final java.lang.String FILE_EXTENSION;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: ".jfr"
private final java.nio.file.Path directory;
descriptor: Ljava/nio/file/Path;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final jdk.jfr.internal.consumer.FileAccess fileAcess;
descriptor: Ljdk/jfr/internal/consumer/FileAccess;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.nio.file.Path lastPath;
descriptor: Ljava/nio/file/Path;
flags: (0x0002) ACC_PRIVATE
private int counter;
descriptor: I
flags: (0x0002) ACC_PRIVATE
public static jdk.jfr.internal.management.ChunkFilename newUnpriviliged(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Ljdk/jfr/internal/management/ChunkFilename;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: new jdk.jfr.internal.management.ChunkFilename
dup
aload 0
getstatic jdk.jfr.internal.consumer.FileAccess.UNPRIVILEGED:Ljdk/jfr/internal/consumer/FileAccess;
invokespecial jdk.jfr.internal.management.ChunkFilename.<init>:(Ljava/nio/file/Path;Ljdk/jfr/internal/consumer/FileAccess;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 directory Ljava/nio/file/Path;
MethodParameters:
Name Flags
directory
public static jdk.jfr.internal.management.ChunkFilename newPriviliged(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Ljdk/jfr/internal/management/ChunkFilename;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: new jdk.jfr.internal.management.ChunkFilename
dup
aload 0
getstatic jdk.jfr.internal.SecuritySupport.PRIVILEGED:Ljdk/jfr/internal/consumer/FileAccess;
invokespecial jdk.jfr.internal.management.ChunkFilename.<init>:(Ljava/nio/file/Path;Ljdk/jfr/internal/consumer/FileAccess;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 directory Ljava/nio/file/Path;
MethodParameters:
Name Flags
directory
private void <init>(java.nio.file.Path, jdk.jfr.internal.consumer.FileAccess);
descriptor: (Ljava/nio/file/Path;Ljdk/jfr/internal/consumer/FileAccess;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
putfield jdk.jfr.internal.management.ChunkFilename.directory:Ljava/nio/file/Path;
2: aload 0
aload 2
putfield jdk.jfr.internal.management.ChunkFilename.fileAcess:Ljdk/jfr/internal/consumer/FileAccess;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/jfr/internal/management/ChunkFilename;
0 4 1 directory Ljava/nio/file/Path;
0 4 2 fileAccess Ljdk/jfr/internal/consumer/FileAccess;
MethodParameters:
Name Flags
directory
fileAccess
public java.lang.String next(java.time.LocalDateTime);
descriptor: (Ljava/time/LocalDateTime;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokestatic jdk.jfr.internal.Utils.formatDateTime:(Ljava/time/LocalDateTime;)Ljava/lang/String;
astore 2
start local 2 1: aload 0
getfield jdk.jfr.internal.management.ChunkFilename.directory:Ljava/nio/file/Path;
new java.lang.StringBuilder
dup
aload 2
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".jfr"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 3
start local 3 2: aload 0
getfield jdk.jfr.internal.management.ChunkFilename.lastPath:Ljava/nio/file/Path;
ifnull 3
aload 3
aload 0
getfield jdk.jfr.internal.management.ChunkFilename.lastPath:Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.equals:(Ljava/lang/Object;)Z
ifne 12
3: StackMap locals: java.lang.String java.nio.file.Path
StackMap stack:
aload 0
getfield jdk.jfr.internal.management.ChunkFilename.fileAcess:Ljdk/jfr/internal/consumer/FileAccess;
aload 3
invokevirtual jdk.jfr.internal.consumer.FileAccess.exists:(Ljava/nio/file/Path;)Z
ifne 12
4: aload 0
iconst_1
putfield jdk.jfr.internal.management.ChunkFilename.counter:I
5: aload 0
aload 3
putfield jdk.jfr.internal.management.ChunkFilename.lastPath:Ljava/nio/file/Path;
6: aload 3
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
areturn
7: StackMap locals:
StackMap stack:
ldc "%s_%02d%s"
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
dup
iconst_1
aload 0
getfield jdk.jfr.internal.management.ChunkFilename.counter:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_2
ldc ".jfr"
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
astore 4
start local 4 8: aload 0
getfield jdk.jfr.internal.management.ChunkFilename.directory:Ljava/nio/file/Path;
aload 4
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 3
9: aload 0
dup
getfield jdk.jfr.internal.management.ChunkFilename.counter:I
iconst_1
iadd
putfield jdk.jfr.internal.management.ChunkFilename.counter:I
10: aload 0
getfield jdk.jfr.internal.management.ChunkFilename.fileAcess:Ljdk/jfr/internal/consumer/FileAccess;
aload 3
invokevirtual jdk.jfr.internal.consumer.FileAccess.exists:(Ljava/nio/file/Path;)Z
ifne 12
11: aload 3
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
areturn
end local 4 12: StackMap locals:
StackMap stack:
aload 0
getfield jdk.jfr.internal.management.ChunkFilename.counter:I
ldc 100000
if_icmplt 7
13: new java.io.IOException
dup
new java.lang.StringBuilder
dup
ldc "Unable to find unused filename after "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield jdk.jfr.internal.management.ChunkFilename.counter:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " attempts"
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
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Ljdk/jfr/internal/management/ChunkFilename;
0 14 1 time Ljava/time/LocalDateTime;
1 14 2 filename Ljava/lang/String;
2 14 3 p Ljava/nio/file/Path;
8 12 4 extendedName Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
time
}
SourceFile: "ChunkFilename.java"