class com.sun.glass.ui.monocle.RunnableProcessor implements java.lang.Runnable
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.sun.glass.ui.monocle.RunnableProcessor
super_class: java.lang.Object
{
private com.sun.glass.ui.monocle.RunnableQueue queue;
descriptor: Lcom/sun/glass/ui/monocle/RunnableQueue;
flags: (0x0002) ACC_PRIVATE
private java.util.LinkedList<com.sun.glass.ui.monocle.RunnableProcessor$RunLoopControl> activeRunLoops;
descriptor: Ljava/util/LinkedList;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/LinkedList<Lcom/sun/glass/ui/monocle/RunnableProcessor$RunLoopControl;>;
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lcom/sun/glass/ui/monocle/RunnableProcessor;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic com.sun.glass.ui.monocle.RunnableProcessor.$assertionsDisabled:Z
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
new com.sun.glass.ui.monocle.RunnableQueue
dup
invokespecial com.sun.glass.ui.monocle.RunnableQueue.<init>:()V
putfield com.sun.glass.ui.monocle.RunnableProcessor.queue:Lcom/sun/glass/ui/monocle/RunnableQueue;
2: aload 0
new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
putfield com.sun.glass.ui.monocle.RunnableProcessor.activeRunLoops:Ljava/util/LinkedList;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/glass/ui/monocle/RunnableProcessor;
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual com.sun.glass.ui.monocle.RunnableProcessor.runLoop:()Ljava/lang/Object;
pop
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/glass/ui/monocle/RunnableProcessor;
void invokeLater(java.lang.Runnable);
descriptor: (Ljava/lang/Runnable;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.glass.ui.monocle.RunnableProcessor.queue:Lcom/sun/glass/ui/monocle/RunnableQueue;
aload 1
invokevirtual com.sun.glass.ui.monocle.RunnableQueue.postRunnable:(Ljava/lang/Runnable;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/glass/ui/monocle/RunnableProcessor;
0 2 1 r Ljava/lang/Runnable;
MethodParameters:
Name Flags
r
void invokeAndWait(java.lang.Runnable);
descriptor: (Ljava/lang/Runnable;)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: new java.util.concurrent.CountDownLatch
dup
iconst_1
invokespecial java.util.concurrent.CountDownLatch.<init>:(I)V
astore 2
start local 2 1: aload 0
getfield com.sun.glass.ui.monocle.RunnableProcessor.queue:Lcom/sun/glass/ui/monocle/RunnableQueue;
aload 2
aload 1
invokedynamic run(Ljava/util/concurrent/CountDownLatch;Ljava/lang/Runnable;)Ljava/lang/Runnable;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()V
com/sun/glass/ui/monocle/RunnableProcessor.lambda$0(Ljava/util/concurrent/CountDownLatch;Ljava/lang/Runnable;)V (6)
()V
invokevirtual com.sun.glass.ui.monocle.RunnableQueue.postRunnable:(Ljava/lang/Runnable;)V
2: aload 2
invokevirtual java.util.concurrent.CountDownLatch.await:()V
3: goto 5
StackMap locals: com.sun.glass.ui.monocle.RunnableProcessor java.lang.Runnable java.util.concurrent.CountDownLatch
StackMap stack: java.lang.InterruptedException
4: pop
5: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/sun/glass/ui/monocle/RunnableProcessor;
0 6 1 r Ljava/lang/Runnable;
1 6 2 latch Ljava/util/concurrent/CountDownLatch;
Exception table:
from to target type
2 3 4 Class java.lang.InterruptedException
MethodParameters:
Name Flags
r final
private java.lang.Object runLoop();
descriptor: ()Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=1
start local 0 0: new com.sun.glass.ui.monocle.RunnableProcessor$RunLoopControl
dup
invokespecial com.sun.glass.ui.monocle.RunnableProcessor$RunLoopControl.<init>:()V
astore 1
start local 1 1: aload 0
getfield com.sun.glass.ui.monocle.RunnableProcessor.activeRunLoops:Ljava/util/LinkedList;
aload 1
invokevirtual java.util.LinkedList.push:(Ljava/lang/Object;)V
2: aload 1
iconst_1
putfield com.sun.glass.ui.monocle.RunnableProcessor$RunLoopControl.active:Z
3: goto 8
4: StackMap locals: com.sun.glass.ui.monocle.RunnableProcessor$RunLoopControl
StackMap stack:
aload 0
getfield com.sun.glass.ui.monocle.RunnableProcessor.queue:Lcom/sun/glass/ui/monocle/RunnableQueue;
invokevirtual com.sun.glass.ui.monocle.RunnableQueue.getNextRunnable:()Ljava/lang/Runnable;
invokeinterface java.lang.Runnable.run:()V
5: goto 8
StackMap locals:
StackMap stack: java.lang.Throwable
6: astore 2
start local 2 7: aload 2
invokestatic com.sun.glass.ui.Application.reportException:(Ljava/lang/Throwable;)V
end local 2 8: StackMap locals:
StackMap stack:
aload 1
getfield com.sun.glass.ui.monocle.RunnableProcessor$RunLoopControl.active:Z
ifne 4
9: aload 1
getfield com.sun.glass.ui.monocle.RunnableProcessor$RunLoopControl.release:Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/sun/glass/ui/monocle/RunnableProcessor;
1 10 1 control Lcom/sun/glass/ui/monocle/RunnableProcessor$RunLoopControl;
7 8 2 e Ljava/lang/Throwable;
Exception table:
from to target type
4 5 6 Class java.lang.Throwable
java.lang.Object enterNestedEventLoop();
descriptor: ()Ljava/lang/Object;
flags: (0x0000)
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual com.sun.glass.ui.monocle.RunnableProcessor.runLoop:()Ljava/lang/Object;
astore 1
start local 1 1: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/glass/ui/monocle/RunnableProcessor;
1 2 1 ret Ljava/lang/Object;
void leaveNestedEventLoop(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.glass.ui.monocle.RunnableProcessor.activeRunLoops:Ljava/util/LinkedList;
invokevirtual java.util.LinkedList.pop:()Ljava/lang/Object;
checkcast com.sun.glass.ui.monocle.RunnableProcessor$RunLoopControl
astore 2
start local 2 1: getstatic com.sun.glass.ui.monocle.RunnableProcessor.$assertionsDisabled:Z
ifne 2
aload 2
ifnonnull 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals: com.sun.glass.ui.monocle.RunnableProcessor$RunLoopControl
StackMap stack:
aload 2
iconst_0
putfield com.sun.glass.ui.monocle.RunnableProcessor$RunLoopControl.active:Z
3: aload 2
aload 1
putfield com.sun.glass.ui.monocle.RunnableProcessor$RunLoopControl.release:Ljava/lang/Object;
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/glass/ui/monocle/RunnableProcessor;
0 5 1 retValue Ljava/lang/Object;
1 5 2 current Lcom/sun/glass/ui/monocle/RunnableProcessor$RunLoopControl;
MethodParameters:
Name Flags
retValue
void shutdown();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
getfield com.sun.glass.ui.monocle.RunnableProcessor.queue:Lcom/sun/glass/ui/monocle/RunnableQueue;
dup
astore 1
monitorenter
1: aload 0
getfield com.sun.glass.ui.monocle.RunnableProcessor.queue:Lcom/sun/glass/ui/monocle/RunnableQueue;
invokevirtual com.sun.glass.ui.monocle.RunnableQueue.clear:()V
2: goto 5
3: StackMap locals: com.sun.glass.ui.monocle.RunnableQueue
StackMap stack:
aload 0
getfield com.sun.glass.ui.monocle.RunnableProcessor.activeRunLoops:Ljava/util/LinkedList;
invokevirtual java.util.LinkedList.pop:()Ljava/lang/Object;
checkcast com.sun.glass.ui.monocle.RunnableProcessor$RunLoopControl
astore 2
start local 2 4: aload 2
iconst_0
putfield com.sun.glass.ui.monocle.RunnableProcessor$RunLoopControl.active:Z
end local 2 5: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.glass.ui.monocle.RunnableProcessor.activeRunLoops:Ljava/util/LinkedList;
invokevirtual java.util.LinkedList.isEmpty:()Z
ifeq 3
6: aload 0
getfield com.sun.glass.ui.monocle.RunnableProcessor.queue:Lcom/sun/glass/ui/monocle/RunnableQueue;
invokevirtual java.lang.Object.notifyAll:()V
7: aload 1
monitorexit
8: goto 11
StackMap locals:
StackMap stack: java.lang.Throwable
9: aload 1
monitorexit
10: athrow
11: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lcom/sun/glass/ui/monocle/RunnableProcessor;
4 5 2 control Lcom/sun/glass/ui/monocle/RunnableProcessor$RunLoopControl;
Exception table:
from to target type
1 8 9 any
9 10 9 any
static void runLater(java.lang.Runnable);
descriptor: (Ljava/lang/Runnable;)V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: invokestatic com.sun.glass.ui.monocle.NativePlatformFactory.getNativePlatform:()Lcom/sun/glass/ui/monocle/NativePlatform;
1: invokevirtual com.sun.glass.ui.monocle.NativePlatform.getRunnableProcessor:()Lcom/sun/glass/ui/monocle/RunnableProcessor;
2: aload 0
invokevirtual com.sun.glass.ui.monocle.RunnableProcessor.invokeLater:(Ljava/lang/Runnable;)V
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 r Ljava/lang/Runnable;
MethodParameters:
Name Flags
r
private static void lambda$0(java.util.concurrent.CountDownLatch, java.lang.Runnable);
descriptor: (Ljava/util/concurrent/CountDownLatch;Ljava/lang/Runnable;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=3, args_size=2
0: aload 1
invokeinterface java.lang.Runnable.run:()V
1: goto 5
StackMap locals:
StackMap stack: java.lang.Throwable
2: astore 2
3: aload 0
invokevirtual java.util.concurrent.CountDownLatch.countDown:()V
4: aload 2
athrow
5: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.util.concurrent.CountDownLatch.countDown:()V
6: return
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
0 2 2 any
}
SourceFile: "RunnableProcessor.java"
NestMembers:
com.sun.glass.ui.monocle.RunnableProcessor$RunLoopControl
InnerClasses:
private RunLoopControl = com.sun.glass.ui.monocle.RunnableProcessor$RunLoopControl of com.sun.glass.ui.monocle.RunnableProcessor
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles