public class org.jruby.ext.thread.ConditionVariable extends org.jruby.RubyObject
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.ext.thread.ConditionVariable
super_class: org.jruby.RubyObject
{
private java.util.concurrent.ConcurrentLinkedQueue<org.jruby.RubyThread> waiters;
descriptor: Ljava/util/concurrent/ConcurrentLinkedQueue;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/concurrent/ConcurrentLinkedQueue<Lorg/jruby/RubyThread;>;
public static org.jruby.ext.thread.ConditionVariable newInstance(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject[], org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/ext/thread/ConditionVariable;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new org.jruby.ext.thread.ConditionVariable
dup
aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 1
checkcast org.jruby.RubyClass
invokespecial org.jruby.ext.thread.ConditionVariable.<init>:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;)V
astore 4
start local 4 1: aload 4
aload 0
aload 2
aload 3
invokevirtual org.jruby.ext.thread.ConditionVariable.callInit:(Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)V
2: aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 context Lorg/jruby/runtime/ThreadContext;
0 3 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 3 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
0 3 3 block Lorg/jruby/runtime/Block;
1 3 4 result Lorg/jruby/ext/thread/ConditionVariable;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"new"}, rest = true, meta = true)
MethodParameters:
Name Flags
context
recv
args
block
public void <init>(org.jruby.Ruby, org.jruby.RubyClass);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyClass;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokespecial org.jruby.RubyObject.<init>:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;)V
1: aload 0
new java.util.concurrent.ConcurrentLinkedQueue
dup
invokespecial java.util.concurrent.ConcurrentLinkedQueue.<init>:()V
putfield org.jruby.ext.thread.ConditionVariable.waiters:Ljava/util/concurrent/ConcurrentLinkedQueue;
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ext/thread/ConditionVariable;
0 3 1 runtime Lorg/jruby/Ruby;
0 3 2 type Lorg/jruby/RubyClass;
MethodParameters:
Name Flags
runtime
type
public static void setup(org.jruby.Ruby);
descriptor: (Lorg/jruby/Ruby;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.Ruby.getThread:()Lorg/jruby/RubyClass;
1: ldc "ConditionVariable"
2: aload 0
invokevirtual org.jruby.Ruby.getObject:()Lorg/jruby/RubyClass;
3: invokedynamic allocate()Lorg/jruby/runtime/ObjectAllocator;
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:
(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;)Lorg/jruby/runtime/builtin/IRubyObject;
org/jruby/ext/thread/ConditionVariable.lambda$0(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;)Lorg/jruby/runtime/builtin/IRubyObject; (6)
(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;)Lorg/jruby/runtime/builtin/IRubyObject;
4: invokevirtual org.jruby.RubyClass.defineClassUnder:(Ljava/lang/String;Lorg/jruby/RubyClass;Lorg/jruby/runtime/ObjectAllocator;)Lorg/jruby/RubyClass;
5: astore 1
start local 1 6: aload 1
ldc "initialize_copy"
invokevirtual org.jruby.RubyClass.undefineMethod:(Ljava/lang/String;)V
7: aload 1
ldc Lorg/jruby/ext/thread/ConditionVariable;
invokevirtual org.jruby.RubyClass.setReifiedClass:(Ljava/lang/Class;)V
8: aload 1
ldc Lorg/jruby/ext/thread/ConditionVariable;
invokevirtual org.jruby.RubyClass.defineAnnotatedMethods:(Ljava/lang/Class;)V
9: aload 0
invokevirtual org.jruby.Ruby.getObject:()Lorg/jruby/RubyClass;
ldc "ConditionVariable"
aload 1
invokevirtual org.jruby.RubyClass.setConstant:(Ljava/lang/String;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
10: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 runtime Lorg/jruby/Ruby;
6 11 1 cConditionVariable Lorg/jruby/RubyClass;
MethodParameters:
Name Flags
runtime
public org.jruby.runtime.builtin.IRubyObject wait_ruby(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
invokevirtual org.jruby.ext.thread.ConditionVariable.wait_ruby:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/thread/ConditionVariable;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
0 1 2 m Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"wait"})
MethodParameters:
Name Flags
context
m
public org.jruby.runtime.builtin.IRubyObject wait_ruby(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
invokevirtual org.jruby.runtime.ThreadContext.getThread:()Lorg/jruby/RubyThread;
astore 4
start local 4 1: aload 0
getfield org.jruby.ext.thread.ConditionVariable.waiters:Ljava/util/concurrent/ConcurrentLinkedQueue;
aload 4
invokevirtual java.util.concurrent.ConcurrentLinkedQueue.add:(Ljava/lang/Object;)Z
pop
2: aload 1
invokestatic org.jruby.ext.thread.ConditionVariable.sites:(Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/JavaSites$ConditionVariableSites;
getfield org.jruby.runtime.JavaSites$ConditionVariableSites.mutex_sleep:Lorg/jruby/runtime/callsite/CachingCallSite;
aload 1
aload 0
aload 2
aload 3
invokevirtual org.jruby.runtime.callsite.CachingCallSite.call:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
3: goto 7
StackMap locals: org.jruby.ext.thread.ConditionVariable org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject org.jruby.RubyThread
StackMap stack: java.lang.Throwable
4: astore 5
5: aload 0
getfield org.jruby.ext.thread.ConditionVariable.waiters:Ljava/util/concurrent/ConcurrentLinkedQueue;
aload 4
invokevirtual java.util.concurrent.ConcurrentLinkedQueue.remove:(Ljava/lang/Object;)Z
pop
6: aload 5
athrow
7: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.ext.thread.ConditionVariable.waiters:Ljava/util/concurrent/ConcurrentLinkedQueue;
aload 4
invokevirtual java.util.concurrent.ConcurrentLinkedQueue.remove:(Ljava/lang/Object;)Z
pop
8: aload 0
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/jruby/ext/thread/ConditionVariable;
0 9 1 context Lorg/jruby/runtime/ThreadContext;
0 9 2 m Lorg/jruby/runtime/builtin/IRubyObject;
0 9 3 t Lorg/jruby/runtime/builtin/IRubyObject;
1 9 4 thread Lorg/jruby/RubyThread;
Exception table:
from to target type
2 4 4 any
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"wait"})
MethodParameters:
Name Flags
context
m
t
public synchronized org.jruby.runtime.builtin.IRubyObject broadcast(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.ext.thread.ConditionVariable.waiters:Ljava/util/concurrent/ConcurrentLinkedQueue;
invokedynamic test()Ljava/util/function/Predicate;
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:
(Ljava/lang/Object;)Z
org/jruby/ext/thread/ConditionVariable.lambda$1(Lorg/jruby/RubyThread;)Z (6)
(Lorg/jruby/RubyThread;)Z
invokevirtual java.util.concurrent.ConcurrentLinkedQueue.removeIf:(Ljava/util/function/Predicate;)Z
pop
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ext/thread/ConditionVariable;
0 2 1 context Lorg/jruby/runtime/ThreadContext;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod()
MethodParameters:
Name Flags
context
public synchronized org.jruby.runtime.builtin.IRubyObject signal(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.ext.thread.ConditionVariable.waiters:Ljava/util/concurrent/ConcurrentLinkedQueue;
invokevirtual java.util.concurrent.ConcurrentLinkedQueue.poll:()Ljava/lang/Object;
checkcast org.jruby.RubyThread
astore 2
start local 2 1: aload 2
ifnull 3
2: aload 2
invokevirtual org.jruby.RubyThread.interrupt:()V
3: StackMap locals: org.jruby.RubyThread
StackMap stack:
aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/ext/thread/ConditionVariable;
0 4 1 context Lorg/jruby/runtime/ThreadContext;
1 4 2 waiter Lorg/jruby/RubyThread;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod()
MethodParameters:
Name Flags
context
public org.jruby.runtime.builtin.IRubyObject marshal_dump(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
invokestatic org.jruby.RubyMarshal.undumpable:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/RubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/thread/ConditionVariable;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod()
MethodParameters:
Name Flags
context
private static org.jruby.runtime.JavaSites$ConditionVariableSites sites(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/JavaSites$ConditionVariableSites;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.runtime.ThreadContext.sites:Lorg/jruby/runtime/JavaSites;
getfield org.jruby.runtime.JavaSites.ConditionVariable:Lorg/jruby/runtime/JavaSites$ConditionVariableSites;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lorg/jruby/runtime/ThreadContext;
MethodParameters:
Name Flags
context
public org.jruby.runtime.builtin.IRubyObject wait_ruby(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject[]);
descriptor: (Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
arraylength
tableswitch { // 1 - 2
1: 1
2: 2
default: 3
}
1: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
iconst_0
aaload
invokevirtual org.jruby.ext.thread.ConditionVariable.wait_ruby:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
2: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
iconst_0
aaload
aload 2
iconst_1
aaload
invokevirtual org.jruby.ext.thread.ConditionVariable.wait_ruby:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
3: StackMap locals:
StackMap stack:
aload 1
aload 2
arraylength
iconst_1
iconst_2
invokestatic org.jruby.runtime.Arity.raiseArgumentError:(Lorg/jruby/runtime/ThreadContext;III)V
4: aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/ext/thread/ConditionVariable;
0 5 1 context Lorg/jruby/runtime/ThreadContext;
0 5 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
context
args
private static org.jruby.runtime.builtin.IRubyObject lambda$0(org.jruby.Ruby, org.jruby.RubyClass);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyClass;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: new org.jruby.ext.thread.ConditionVariable
dup
aload 0
aload 1
invokespecial org.jruby.ext.thread.ConditionVariable.<init>:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 r Lorg/jruby/Ruby;
0 1 1 klass Lorg/jruby/RubyClass;
private static boolean lambda$1(org.jruby.RubyThread);
descriptor: (Lorg/jruby/RubyThread;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.RubyThread.interrupt:()V
1: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 waiter Lorg/jruby/RubyThread;
}
SourceFile: "ConditionVariable.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public ConditionVariableSites = org.jruby.runtime.JavaSites$ConditionVariableSites of org.jruby.runtime.JavaSites
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyClass(name = {"ConditionVariable"})