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: .line 39
            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 // jdk.jfr.internal.FilePurger this
         0: .line 37
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
            return
        end local 0 // jdk.jfr.internal.FilePurger this
      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 // jdk.jfr.internal.SecuritySupport$SafePath p
         0: .line 42
            getstatic jdk.jfr.internal.FilePurger.paths:Ljava/util/Set;
            aload 0 /* p */
            invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
            pop
         1: .line 43
            getstatic jdk.jfr.internal.FilePurger.paths:Ljava/util/Set;
            invokeinterface java.util.Set.size:()I
            sipush 1000
            if_icmple 3
         2: .line 44
            invokestatic jdk.jfr.internal.FilePurger.removeOldest:()V
         3: .line 46
      StackMap locals:
      StackMap stack:
            return
        end local 0 // jdk.jfr.internal.SecuritySupport$SafePath p
      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: .line 49
            getstatic jdk.jfr.internal.FilePurger.paths:Ljava/util/Set;
            invokeinterface java.util.Set.isEmpty:()Z
            ifeq 2
         1: .line 50
            return
         2: .line 53
      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 /* p */
        start local 0 // jdk.jfr.internal.SecuritySupport$SafePath p
         4: .line 54
            aload 0 /* p */
            invokestatic jdk.jfr.internal.FilePurger.delete:(Ljdk/jfr/internal/SecuritySupport$SafePath;)Z
            ifeq 6
         5: .line 55
            getstatic jdk.jfr.internal.FilePurger.paths:Ljava/util/Set;
            aload 0 /* p */
            invokeinterface java.util.Set.remove:(Ljava/lang/Object;)Z
            pop
        end local 0 // jdk.jfr.internal.SecuritySupport$SafePath p
         6: .line 53
      StackMap locals:
      StackMap stack:
            aload 1
            invokeinterface java.util.Iterator.hasNext:()Z
            ifne 3
         7: .line 58
            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: .line 61
            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 /* oldest */
        start local 0 // jdk.jfr.internal.SecuritySupport$SafePath oldest
         1: .line 62
            getstatic jdk.jfr.internal.FilePurger.paths:Ljava/util/Set;
            aload 0 /* oldest */
            invokeinterface java.util.Set.remove:(Ljava/lang/Object;)Z
            pop
         2: .line 63
            return
        end local 0 // jdk.jfr.internal.SecuritySupport$SafePath oldest
      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 // jdk.jfr.internal.SecuritySupport$SafePath p
         0: .line 67
            aload 0 /* p */
            invokestatic jdk.jfr.internal.SecuritySupport.delete:(Ljdk/jfr/internal/SecuritySupport$SafePath;)V
         1: .line 68
            iconst_1
            ireturn
         2: .line 69
      StackMap locals:
      StackMap stack: java.io.IOException
            pop
         3: .line 70
            iconst_0
            ireturn
        end local 0 // jdk.jfr.internal.SecuritySupport$SafePath p
      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