final class org.jruby.runtime.load.LoadService$RequireLocks
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: org.jruby.runtime.load.LoadService$RequireLocks
super_class: java.lang.Object
{
private final java.util.concurrent.ConcurrentHashMap<java.lang.String, java.util.concurrent.locks.ReentrantLock> pool;
descriptor: Ljava/util/concurrent/ConcurrentHashMap;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/concurrent/ConcurrentHashMap<Ljava/lang/String;Ljava/util/concurrent/locks/ReentrantLock;>;
final org.jruby.runtime.load.LoadService this$0;
descriptor: Lorg/jruby/runtime/load/LoadService;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
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 Lorg/jruby/runtime/load/LoadService;
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 org.jruby.runtime.load.LoadService$RequireLocks.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>(org.jruby.runtime.load.LoadService);
descriptor: (Lorg/jruby/runtime/load/LoadService;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=2, args_size=2
start local 0 0: aload 0
aload 1
putfield org.jruby.runtime.load.LoadService$RequireLocks.this$0:Lorg/jruby/runtime/load/LoadService;
aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.concurrent.ConcurrentHashMap
dup
bipush 8
ldc 0.75
iconst_2
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:(IFI)V
putfield org.jruby.runtime.load.LoadService$RequireLocks.pool:Ljava/util/concurrent/ConcurrentHashMap;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/runtime/load/LoadService$RequireLocks;
MethodParameters:
Name Flags
this$0 final
private org.jruby.runtime.load.LoadService$LockResult lock(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/jruby/runtime/load/LoadService$LockResult;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.runtime.load.LoadService$RequireLocks.pool:Ljava/util/concurrent/ConcurrentHashMap;
aload 1
invokevirtual java.util.concurrent.ConcurrentHashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.concurrent.locks.ReentrantLock
astore 2
start local 2 1: aload 2
ifnonnull 5
2: new java.util.concurrent.locks.ReentrantLock
dup
invokespecial java.util.concurrent.locks.ReentrantLock.<init>:()V
astore 3
start local 3 3: aload 0
getfield org.jruby.runtime.load.LoadService$RequireLocks.pool:Ljava/util/concurrent/ConcurrentHashMap;
aload 1
aload 3
invokevirtual java.util.concurrent.ConcurrentHashMap.putIfAbsent:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.concurrent.locks.ReentrantLock
astore 2
4: aload 2
ifnonnull 5
aload 3
astore 2
end local 3 5: StackMap locals: java.util.concurrent.locks.ReentrantLock
StackMap stack:
aload 2
invokevirtual java.util.concurrent.locks.ReentrantLock.isHeldByCurrentThread:()Z
ifeq 6
getstatic org.jruby.runtime.load.LoadService$LockResult.CIRCULAR:Lorg/jruby/runtime/load/LoadService$LockResult;
areturn
6: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.runtime.load.LoadService$RequireLocks.this$0:Lorg/jruby/runtime/load/LoadService;
getfield org.jruby.runtime.load.LoadService.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getCurrentContext:()Lorg/jruby/runtime/ThreadContext;
invokevirtual org.jruby.runtime.ThreadContext.getThread:()Lorg/jruby/RubyThread;
invokevirtual org.jruby.RubyThread.enterSleep:()V
7: aload 2
invokevirtual java.util.concurrent.locks.ReentrantLock.lock:()V
8: goto 12
StackMap locals:
StackMap stack: java.lang.Throwable
9: astore 3
10: aload 0
getfield org.jruby.runtime.load.LoadService$RequireLocks.this$0:Lorg/jruby/runtime/load/LoadService;
getfield org.jruby.runtime.load.LoadService.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getCurrentContext:()Lorg/jruby/runtime/ThreadContext;
invokevirtual org.jruby.runtime.ThreadContext.getThread:()Lorg/jruby/RubyThread;
invokevirtual org.jruby.RubyThread.exitSleep:()V
11: aload 3
athrow
12: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.runtime.load.LoadService$RequireLocks.this$0:Lorg/jruby/runtime/load/LoadService;
getfield org.jruby.runtime.load.LoadService.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getCurrentContext:()Lorg/jruby/runtime/ThreadContext;
invokevirtual org.jruby.runtime.ThreadContext.getThread:()Lorg/jruby/RubyThread;
invokevirtual org.jruby.RubyThread.exitSleep:()V
13: getstatic org.jruby.runtime.load.LoadService$LockResult.LOCKED:Lorg/jruby/runtime/load/LoadService$LockResult;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/jruby/runtime/load/LoadService$RequireLocks;
0 14 1 requireName Ljava/lang/String;
1 14 2 lock Ljava/util/concurrent/locks/ReentrantLock;
3 5 3 newLock Ljava/util/concurrent/locks/ReentrantLock;
Exception table:
from to target type
6 9 9 any
MethodParameters:
Name Flags
requireName
private void unlock(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.runtime.load.LoadService$RequireLocks.pool:Ljava/util/concurrent/ConcurrentHashMap;
aload 1
invokevirtual java.util.concurrent.ConcurrentHashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.concurrent.locks.ReentrantLock
astore 2
start local 2 1: aload 2
ifnull 4
2: getstatic org.jruby.runtime.load.LoadService$RequireLocks.$assertionsDisabled:Z
ifne 3
aload 2
invokevirtual java.util.concurrent.locks.ReentrantLock.isHeldByCurrentThread:()Z
ifne 3
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
3: StackMap locals: java.util.concurrent.locks.ReentrantLock
StackMap stack:
aload 2
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
4: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/runtime/load/LoadService$RequireLocks;
0 5 1 requireName Ljava/lang/String;
1 5 2 lock Ljava/util/concurrent/locks/ReentrantLock;
MethodParameters:
Name Flags
requireName
}
SourceFile: "LoadService.java"
NestHost: org.jruby.runtime.load.LoadService
InnerClasses:
final LockResult = org.jruby.runtime.load.LoadService$LockResult of org.jruby.runtime.load.LoadService
private final RequireLocks = org.jruby.runtime.load.LoadService$RequireLocks of org.jruby.runtime.load.LoadService