public class org.jruby.embed.internal.ConcurrentLocalContextProvider extends org.jruby.embed.internal.AbstractLocalContextProvider
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.embed.internal.ConcurrentLocalContextProvider
super_class: org.jruby.embed.internal.AbstractLocalContextProvider
{
private volatile java.util.concurrent.ConcurrentLinkedQueue<java.util.concurrent.atomic.AtomicReference<org.jruby.embed.internal.LocalContext>> contextRefs;
descriptor: Ljava/util/concurrent/ConcurrentLinkedQueue;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
Signature: Ljava/util/concurrent/ConcurrentLinkedQueue<Ljava/util/concurrent/atomic/AtomicReference<Lorg/jruby/embed/internal/LocalContext;>;>;
private java.lang.ThreadLocal<java.util.concurrent.atomic.AtomicReference<org.jruby.embed.internal.LocalContext>> contextHolder;
descriptor: Ljava/lang/ThreadLocal;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/lang/ThreadLocal<Ljava/util/concurrent/atomic/AtomicReference<Lorg/jruby/embed/internal/LocalContext;>;>;
public void <init>(org.jruby.embed.LocalVariableBehavior);
descriptor: (Lorg/jruby/embed/LocalVariableBehavior;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokestatic org.jruby.embed.internal.ConcurrentLocalContextProvider.getGlobalRuntimeConfigOrNew:()Lorg/jruby/RubyInstanceConfig;
aload 1
invokespecial org.jruby.embed.internal.AbstractLocalContextProvider.<init>:(Lorg/jruby/RubyInstanceConfig;Lorg/jruby/embed/LocalVariableBehavior;)V
1: aload 0
2: new java.util.concurrent.ConcurrentLinkedQueue
dup
invokespecial java.util.concurrent.ConcurrentLinkedQueue.<init>:()V
putfield org.jruby.embed.internal.ConcurrentLocalContextProvider.contextRefs:Ljava/util/concurrent/ConcurrentLinkedQueue;
3: aload 0
4: new org.jruby.embed.internal.ConcurrentLocalContextProvider$1
dup
aload 0
invokespecial org.jruby.embed.internal.ConcurrentLocalContextProvider$1.<init>:(Lorg/jruby/embed/internal/ConcurrentLocalContextProvider;)V
putfield org.jruby.embed.internal.ConcurrentLocalContextProvider.contextHolder:Ljava/lang/ThreadLocal;
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/jruby/embed/internal/ConcurrentLocalContextProvider;
0 6 1 behavior Lorg/jruby/embed/LocalVariableBehavior;
MethodParameters:
Name Flags
behavior
public void <init>(org.jruby.embed.LocalVariableBehavior, boolean);
descriptor: (Lorg/jruby/embed/LocalVariableBehavior;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokestatic org.jruby.embed.internal.ConcurrentLocalContextProvider.getGlobalRuntimeConfigOrNew:()Lorg/jruby/RubyInstanceConfig;
aload 1
invokespecial org.jruby.embed.internal.AbstractLocalContextProvider.<init>:(Lorg/jruby/RubyInstanceConfig;Lorg/jruby/embed/LocalVariableBehavior;)V
1: aload 0
2: new java.util.concurrent.ConcurrentLinkedQueue
dup
invokespecial java.util.concurrent.ConcurrentLinkedQueue.<init>:()V
putfield org.jruby.embed.internal.ConcurrentLocalContextProvider.contextRefs:Ljava/util/concurrent/ConcurrentLinkedQueue;
3: aload 0
4: new org.jruby.embed.internal.ConcurrentLocalContextProvider$1
dup
aload 0
invokespecial org.jruby.embed.internal.ConcurrentLocalContextProvider$1.<init>:(Lorg/jruby/embed/internal/ConcurrentLocalContextProvider;)V
putfield org.jruby.embed.internal.ConcurrentLocalContextProvider.contextHolder:Ljava/lang/ThreadLocal;
5: aload 0
iload 2
putfield org.jruby.embed.internal.ConcurrentLocalContextProvider.lazy:Z
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/jruby/embed/internal/ConcurrentLocalContextProvider;
0 7 1 behavior Lorg/jruby/embed/LocalVariableBehavior;
0 7 2 lazy Z
MethodParameters:
Name Flags
behavior
lazy
public org.jruby.Ruby getRuntime();
descriptor: ()Lorg/jruby/Ruby;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
invokevirtual org.jruby.embed.internal.ConcurrentLocalContextProvider.getGlobalRuntime:(Lorg/jruby/embed/internal/AbstractLocalContextProvider;)Lorg/jruby/Ruby;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/embed/internal/ConcurrentLocalContextProvider;
public org.jruby.RubyInstanceConfig getRubyInstanceConfig();
descriptor: ()Lorg/jruby/RubyInstanceConfig;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
invokevirtual org.jruby.embed.internal.ConcurrentLocalContextProvider.getGlobalRuntimeConfig:(Lorg/jruby/embed/internal/AbstractLocalContextProvider;)Lorg/jruby/RubyInstanceConfig;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/embed/internal/ConcurrentLocalContextProvider;
public org.jruby.embed.internal.BiVariableMap getVarMap();
descriptor: ()Lorg/jruby/embed/internal/BiVariableMap;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.embed.internal.ConcurrentLocalContextProvider.contextHolder:Ljava/lang/ThreadLocal;
invokevirtual java.lang.ThreadLocal.get:()Ljava/lang/Object;
checkcast java.util.concurrent.atomic.AtomicReference
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
checkcast org.jruby.embed.internal.LocalContext
aload 0
invokevirtual org.jruby.embed.internal.LocalContext.getVarMap:(Lorg/jruby/embed/internal/LocalContextProvider;)Lorg/jruby/embed/internal/BiVariableMap;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/embed/internal/ConcurrentLocalContextProvider;
public java.util.Map getAttributeMap();
descriptor: ()Ljava/util/Map;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.embed.internal.ConcurrentLocalContextProvider.contextHolder:Ljava/lang/ThreadLocal;
invokevirtual java.lang.ThreadLocal.get:()Ljava/lang/Object;
checkcast java.util.concurrent.atomic.AtomicReference
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
checkcast org.jruby.embed.internal.LocalContext
invokevirtual org.jruby.embed.internal.LocalContext.getAttributeMap:()Ljava/util/Map;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/embed/internal/ConcurrentLocalContextProvider;
public boolean isRuntimeInitialized();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: invokestatic org.jruby.Ruby.isGlobalRuntimeReady:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/embed/internal/ConcurrentLocalContextProvider;
public void terminate();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: aload 0
getfield org.jruby.embed.internal.ConcurrentLocalContextProvider.contextRefs:Ljava/util/concurrent/ConcurrentLinkedQueue;
astore 1
start local 1 1: aload 0
aconst_null
putfield org.jruby.embed.internal.ConcurrentLocalContextProvider.contextRefs:Ljava/util/concurrent/ConcurrentLinkedQueue;
2: aload 1
ifnull 9
3: aload 1
invokevirtual java.util.concurrent.ConcurrentLinkedQueue.iterator:()Ljava/util/Iterator;
astore 3
goto 7
StackMap locals: org.jruby.embed.internal.ConcurrentLocalContextProvider java.util.concurrent.ConcurrentLinkedQueue top java.util.Iterator
StackMap stack:
4: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.concurrent.atomic.AtomicReference
astore 2
start local 2 5: aload 2
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
checkcast org.jruby.embed.internal.LocalContext
invokevirtual org.jruby.embed.internal.LocalContext.remove:()V
6: aload 2
aconst_null
invokevirtual java.util.concurrent.atomic.AtomicReference.lazySet:(Ljava/lang/Object;)V
end local 2 7: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
8: aload 1
invokevirtual java.util.concurrent.ConcurrentLinkedQueue.clear:()V
9: StackMap locals: org.jruby.embed.internal.ConcurrentLocalContextProvider java.util.concurrent.ConcurrentLinkedQueue
StackMap stack:
aload 0
getfield org.jruby.embed.internal.ConcurrentLocalContextProvider.contextHolder:Ljava/lang/ThreadLocal;
invokevirtual java.lang.ThreadLocal.remove:()V
10: aload 0
getfield org.jruby.embed.internal.ConcurrentLocalContextProvider.contextHolder:Ljava/lang/ThreadLocal;
aconst_null
invokevirtual java.lang.ThreadLocal.set:(Ljava/lang/Object;)V
11: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/jruby/embed/internal/ConcurrentLocalContextProvider;
1 12 1 terminated Ljava/util/concurrent/ConcurrentLinkedQueue<Ljava/util/concurrent/atomic/AtomicReference<Lorg/jruby/embed/internal/LocalContext;>;>;
5 7 2 contextRef Ljava/util/concurrent/atomic/AtomicReference<Lorg/jruby/embed/internal/LocalContext;>;
}
SourceFile: "ConcurrentLocalContextProvider.java"
NestMembers:
org.jruby.embed.internal.ConcurrentLocalContextProvider$1
InnerClasses:
org.jruby.embed.internal.ConcurrentLocalContextProvider$1