final class jdk.jfr.internal.FilePurger
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.jfr.internal.FilePurger
super_class: java.lang.Object
{
private static final java.util.Set<jdk.jfr.internal.SecuritySupport$SafePath> paths;
descriptor: Ljava/util/Set;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Set<Ljdk/jfr/internal/SecuritySupport$SafePath;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new java.util.LinkedHashSet
dup
invokespecial java.util.LinkedHashSet.<init>:()V
putstatic jdk.jfr.internal.FilePurger.paths:Ljava/util/Set;
return
LocalVariableTable:
Start End Slot Name Signature
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jfr/internal/FilePurger;
public static synchronized void add(jdk.jfr.internal.SecuritySupport$SafePath);
descriptor: (Ljdk/jfr/internal/SecuritySupport$SafePath;)V
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic jdk.jfr.internal.FilePurger.paths:Ljava/util/Set;
aload 0
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
1: getstatic jdk.jfr.internal.FilePurger.paths:Ljava/util/Set;
invokeinterface java.util.Set.size:()I
sipush 1000
if_icmple 3
2: invokestatic jdk.jfr.internal.FilePurger.removeOldest:()V
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 p Ljdk/jfr/internal/SecuritySupport$SafePath;
MethodParameters:
Name Flags
p
public static synchronized void purge();
descriptor: ()V
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=2, args_size=0
0: getstatic jdk.jfr.internal.FilePurger.paths:Ljava/util/Set;
invokeinterface java.util.Set.isEmpty:()Z
ifeq 2
1: return
2: StackMap locals:
StackMap stack:
new java.util.ArrayList
dup
getstatic jdk.jfr.internal.FilePurger.paths:Ljava/util/Set;
invokespecial java.util.ArrayList.<init>:(Ljava/util/Collection;)V
invokevirtual java.util.ArrayList.iterator:()Ljava/util/Iterator;
astore 1
goto 6
StackMap locals: top java.util.Iterator
StackMap stack:
3: aload 1
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.internal.SecuritySupport$SafePath
astore 0
start local 0 4: aload 0
invokestatic jdk.jfr.internal.FilePurger.delete:(Ljdk/jfr/internal/SecuritySupport$SafePath;)Z
ifeq 6
5: getstatic jdk.jfr.internal.FilePurger.paths:Ljava/util/Set;
aload 0
invokeinterface java.util.Set.remove:(Ljava/lang/Object;)Z
pop
end local 0 6: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
7: return
LocalVariableTable:
Start End Slot Name Signature
4 6 0 p Ljdk/jfr/internal/SecuritySupport$SafePath;
private static void removeOldest();
descriptor: ()V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=0
0: getstatic jdk.jfr.internal.FilePurger.paths:Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.internal.SecuritySupport$SafePath
astore 0
start local 0 1: getstatic jdk.jfr.internal.FilePurger.paths:Ljava/util/Set;
aload 0
invokeinterface java.util.Set.remove:(Ljava/lang/Object;)Z
pop
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 3 0 oldest Ljdk/jfr/internal/SecuritySupport$SafePath;
private static boolean delete(jdk.jfr.internal.SecuritySupport$SafePath);
descriptor: (Ljdk/jfr/internal/SecuritySupport$SafePath;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic jdk.jfr.internal.SecuritySupport.delete:(Ljdk/jfr/internal/SecuritySupport$SafePath;)V
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack: java.io.IOException
pop
3: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 p Ljdk/jfr/internal/SecuritySupport$SafePath;
Exception table:
from to target type
0 1 2 Class java.io.IOException
MethodParameters:
Name Flags
p
}
SourceFile: "FilePurger.java"
InnerClasses:
public final SafePath = jdk.jfr.internal.SecuritySupport$SafePath of jdk.jfr.internal.SecuritySupport