public final class com.apple.concurrent.Dispatch
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.apple.concurrent.Dispatch
super_class: java.lang.Object
{
static final com.apple.concurrent.Dispatch instance;
descriptor: Lcom/apple/concurrent/Dispatch;
flags: (0x0018) ACC_STATIC, ACC_FINAL
int queueIndex;
descriptor: I
flags: (0x0000)
java.util.concurrent.Executor nonBlockingMainQueue;
descriptor: Ljava/util/concurrent/Executor;
flags: (0x0000)
java.util.concurrent.Executor blockingMainQueue;
descriptor: Ljava/util/concurrent/Executor;
flags: (0x0000)
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new com.apple.concurrent.Dispatch
dup
invokespecial com.apple.concurrent.Dispatch.<init>:()V
putstatic com.apple.concurrent.Dispatch.instance:Lcom/apple/concurrent/Dispatch;
return
LocalVariableTable:
Start End Slot Name Signature
public static com.apple.concurrent.Dispatch getInstance();
descriptor: ()Lcom/apple/concurrent/Dispatch;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic com.apple.concurrent.Dispatch.checkSecurity:()V
1: invokestatic com.apple.concurrent.LibDispatchNative.nativeIsDispatchSupported:()Z
ifne 2
aconst_null
areturn
2: StackMap locals:
StackMap stack:
getstatic com.apple.concurrent.Dispatch.instance:Lcom/apple/concurrent/Dispatch;
areturn
LocalVariableTable:
Start End Slot Name Signature
private static void checkSecurity();
descriptor: ()V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=1, args_size=0
0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 0
start local 0 1: aload 0
ifnull 2
aload 0
new java.lang.RuntimePermission
dup
ldc "canInvokeInSystemThreadGroup"
invokespecial java.lang.RuntimePermission.<init>:(Ljava/lang/String;)V
invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
2: StackMap locals: java.lang.SecurityManager
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 3 0 security Ljava/lang/SecurityManager;
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield com.apple.concurrent.Dispatch.queueIndex:I
2: aload 0
aconst_null
putfield com.apple.concurrent.Dispatch.nonBlockingMainQueue:Ljava/util/concurrent/Executor;
3: aload 0
aconst_null
putfield com.apple.concurrent.Dispatch.blockingMainQueue:Ljava/util/concurrent/Executor;
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/apple/concurrent/Dispatch;
public java.util.concurrent.Executor getAsyncExecutor(com.apple.concurrent.Dispatch$Priority);
descriptor: (Lcom/apple/concurrent/Dispatch$Priority;)Ljava/util/concurrent/Executor;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 1
getstatic com.apple.concurrent.Dispatch$Priority.NORMAL:Lcom/apple/concurrent/Dispatch$Priority;
astore 1
1: StackMap locals:
StackMap stack:
aload 1
getfield com.apple.concurrent.Dispatch$Priority.nativePriority:I
invokestatic com.apple.concurrent.LibDispatchNative.nativeCreateConcurrentQueue:(I)J
lstore 2
start local 2 2: lload 2
lconst_0
lcmp
ifne 3
aconst_null
areturn
3: StackMap locals: long
StackMap stack:
new com.apple.concurrent.LibDispatchConcurrentQueue
dup
lload 2
invokespecial com.apple.concurrent.LibDispatchConcurrentQueue.<init>:(J)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/apple/concurrent/Dispatch;
0 4 1 priority Lcom/apple/concurrent/Dispatch$Priority;
2 4 2 nativeQueue J
MethodParameters:
Name Flags
priority
public java.util.concurrent.ExecutorService createSerialExecutor(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/concurrent/ExecutorService;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 1
ldc ""
astore 1
1: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.String.length:()I
sipush 256
if_icmple 2
aload 1
iconst_0
sipush 256
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 1
2: StackMap locals:
StackMap stack:
ldc "com.apple.java.concurrent."
astore 2
start local 2 3: ldc ""
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 10
4: aload 0
dup
astore 3
monitorenter
5: 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
aload 0
dup
getfield com.apple.concurrent.Dispatch.queueIndex:I
dup_x1
iconst_1
iadd
putfield com.apple.concurrent.Dispatch.queueIndex:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
6: aload 3
monitorexit
7: goto 11
StackMap locals: com.apple.concurrent.Dispatch java.lang.String java.lang.String com.apple.concurrent.Dispatch
StackMap stack: java.lang.Throwable
8: aload 3
monitorexit
9: athrow
10: StackMap locals:
StackMap stack:
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
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
11: StackMap locals:
StackMap stack:
aload 2
invokestatic com.apple.concurrent.LibDispatchNative.nativeCreateSerialQueue:(Ljava/lang/String;)J
lstore 3
start local 3 12: lload 3
lconst_0
lcmp
ifne 13
aconst_null
areturn
13: StackMap locals: long
StackMap stack:
new com.apple.concurrent.LibDispatchSerialQueue
dup
lload 3
invokespecial com.apple.concurrent.LibDispatchSerialQueue.<init>:(J)V
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lcom/apple/concurrent/Dispatch;
0 14 1 label Ljava/lang/String;
3 14 2 queueName Ljava/lang/String;
12 14 3 nativeQueue J
Exception table:
from to target type
5 7 8 any
8 9 8 any
MethodParameters:
Name Flags
label
public synchronized java.util.concurrent.Executor getNonBlockingMainQueueExecutor();
descriptor: ()Ljava/util/concurrent/Executor;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield com.apple.concurrent.Dispatch.nonBlockingMainQueue:Ljava/util/concurrent/Executor;
ifnull 1
aload 0
getfield com.apple.concurrent.Dispatch.nonBlockingMainQueue:Ljava/util/concurrent/Executor;
areturn
1: StackMap locals:
StackMap stack:
aload 0
new com.apple.concurrent.LibDispatchMainQueue$ASync
dup
invokespecial com.apple.concurrent.LibDispatchMainQueue$ASync.<init>:()V
dup_x1
putfield com.apple.concurrent.Dispatch.nonBlockingMainQueue:Ljava/util/concurrent/Executor;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/apple/concurrent/Dispatch;
public synchronized java.util.concurrent.Executor getBlockingMainQueueExecutor();
descriptor: ()Ljava/util/concurrent/Executor;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield com.apple.concurrent.Dispatch.blockingMainQueue:Ljava/util/concurrent/Executor;
ifnull 1
aload 0
getfield com.apple.concurrent.Dispatch.blockingMainQueue:Ljava/util/concurrent/Executor;
areturn
1: StackMap locals:
StackMap stack:
aload 0
new com.apple.concurrent.LibDispatchMainQueue$Sync
dup
invokespecial com.apple.concurrent.LibDispatchMainQueue$Sync.<init>:()V
dup_x1
putfield com.apple.concurrent.Dispatch.blockingMainQueue:Ljava/util/concurrent/Executor;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/apple/concurrent/Dispatch;
}
SourceFile: "Dispatch.java"
NestMembers:
com.apple.concurrent.Dispatch$Priority
InnerClasses:
public final Priority = com.apple.concurrent.Dispatch$Priority of com.apple.concurrent.Dispatch
ASync = com.apple.concurrent.LibDispatchMainQueue$ASync of com.apple.concurrent.LibDispatchMainQueue
Sync = com.apple.concurrent.LibDispatchMainQueue$Sync of com.apple.concurrent.LibDispatchMainQueue