final class jdk.internal.logger.DefaultLoggerFinder$SharedLoggers
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.internal.logger.DefaultLoggerFinder$SharedLoggers
super_class: java.lang.Object
{
private final java.util.Map<java.lang.String, java.lang.ref.Reference<java.lang.System$Logger>> loggers;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/lang/ref/Reference<Ljava/lang/System$Logger;>;>;
private final java.lang.ref.ReferenceQueue<java.lang.System$Logger> queue;
descriptor: Ljava/lang/ref/ReferenceQueue;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/lang/ref/ReferenceQueue<Ljava/lang/System$Logger;>;
static final jdk.internal.logger.DefaultLoggerFinder$SharedLoggers system;
descriptor: Ljdk/internal/logger/DefaultLoggerFinder$SharedLoggers;
flags: (0x0018) ACC_STATIC, ACC_FINAL
static final jdk.internal.logger.DefaultLoggerFinder$SharedLoggers application;
descriptor: Ljdk/internal/logger/DefaultLoggerFinder$SharedLoggers;
flags: (0x0018) ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new jdk.internal.logger.DefaultLoggerFinder$SharedLoggers
dup
invokespecial jdk.internal.logger.DefaultLoggerFinder$SharedLoggers.<init>:()V
putstatic jdk.internal.logger.DefaultLoggerFinder$SharedLoggers.system:Ljdk/internal/logger/DefaultLoggerFinder$SharedLoggers;
1: new jdk.internal.logger.DefaultLoggerFinder$SharedLoggers
dup
invokespecial jdk.internal.logger.DefaultLoggerFinder$SharedLoggers.<init>:()V
putstatic jdk.internal.logger.DefaultLoggerFinder$SharedLoggers.application:Ljdk/internal/logger/DefaultLoggerFinder$SharedLoggers;
return
LocalVariableTable:
Start End Slot Name Signature
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
2: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield jdk.internal.logger.DefaultLoggerFinder$SharedLoggers.loggers:Ljava/util/Map;
3: aload 0
new java.lang.ref.ReferenceQueue
dup
invokespecial java.lang.ref.ReferenceQueue.<init>:()V
putfield jdk.internal.logger.DefaultLoggerFinder$SharedLoggers.queue:Ljava/lang/ref/ReferenceQueue;
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/logger/DefaultLoggerFinder$SharedLoggers;
synchronized java.lang.System$Logger get(java.util.function.Function<java.lang.String, java.lang.System$Logger>, java.lang.String);
descriptor: (Ljava/util/function/Function;Ljava/lang/String;)Ljava/lang/System$Logger;
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=6, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield jdk.internal.logger.DefaultLoggerFinder$SharedLoggers.loggers:Ljava/util/Map;
aload 2
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.ref.Reference
astore 3
start local 3 1: aload 3
ifnonnull 2
aconst_null
goto 3
StackMap locals: java.lang.ref.Reference
StackMap stack:
2: aload 3
invokevirtual java.lang.ref.Reference.get:()Ljava/lang/Object;
checkcast java.lang.System$Logger
StackMap locals:
StackMap stack: java.lang.System$Logger
3: astore 4
start local 4 4: aload 4
ifnonnull 7
5: aload 1
aload 2
invokeinterface java.util.function.Function.apply:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.System$Logger
astore 4
6: aload 0
getfield jdk.internal.logger.DefaultLoggerFinder$SharedLoggers.loggers:Ljava/util/Map;
aload 2
new java.lang.ref.WeakReference
dup
aload 4
aload 0
getfield jdk.internal.logger.DefaultLoggerFinder$SharedLoggers.queue:Ljava/lang/ref/ReferenceQueue;
invokespecial java.lang.ref.WeakReference.<init>:(Ljava/lang/Object;Ljava/lang/ref/ReferenceQueue;)V
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
7: StackMap locals: java.lang.System$Logger
StackMap stack:
aconst_null
astore 5
start local 5 8: goto 11
9: StackMap locals: java.util.Collection
StackMap stack:
aload 5
ifnonnull 10
aload 0
getfield jdk.internal.logger.DefaultLoggerFinder$SharedLoggers.loggers:Ljava/util/Map;
invokeinterface java.util.Map.values:()Ljava/util/Collection;
astore 5
10: StackMap locals:
StackMap stack:
aload 5
aload 3
invokeinterface java.util.Collection.remove:(Ljava/lang/Object;)Z
pop
11: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.logger.DefaultLoggerFinder$SharedLoggers.queue:Ljava/lang/ref/ReferenceQueue;
invokevirtual java.lang.ref.ReferenceQueue.poll:()Ljava/lang/ref/Reference;
dup
astore 3
ifnonnull 9
12: aload 4
areturn
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 13 0 this Ljdk/internal/logger/DefaultLoggerFinder$SharedLoggers;
0 13 1 loggerSupplier Ljava/util/function/Function<Ljava/lang/String;Ljava/lang/System$Logger;>;
0 13 2 name Ljava/lang/String;
1 13 3 ref Ljava/lang/ref/Reference<+Ljava/lang/System$Logger;>;
4 13 4 w Ljava/lang/System$Logger;
8 13 5 values Ljava/util/Collection<Ljava/lang/ref/Reference<Ljava/lang/System$Logger;>;>;
Signature: (Ljava/util/function/Function<Ljava/lang/String;Ljava/lang/System$Logger;>;Ljava/lang/String;)Ljava/lang/System$Logger;
MethodParameters:
Name Flags
loggerSupplier
name final
}
SourceFile: "DefaultLoggerFinder.java"
NestHost: jdk.internal.logger.DefaultLoggerFinder
InnerClasses:
public abstract Logger = java.lang.System$Logger of java.lang.System
final SharedLoggers = jdk.internal.logger.DefaultLoggerFinder$SharedLoggers of jdk.internal.logger.DefaultLoggerFinder