final class org.apache.lucene.index.DocumentsWriterStallControl
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: org.apache.lucene.index.DocumentsWriterStallControl
super_class: java.lang.Object
{
private volatile boolean stalled;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private int numWaiting;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private boolean wasStalled;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private final java.util.Map<java.lang.Thread, java.lang.Boolean> waiting;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/Thread;Ljava/lang/Boolean;>;
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/apache/lucene/index/DocumentsWriterStallControl;
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.apache.lucene.index.DocumentsWriterStallControl.$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 java.util.IdentityHashMap
dup
invokespecial java.util.IdentityHashMap.<init>:()V
putfield org.apache.lucene.index.DocumentsWriterStallControl.waiting:Ljava/util/Map;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/lucene/index/DocumentsWriterStallControl;
synchronized void updateStalled(boolean);
descriptor: (Z)V
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.lucene.index.DocumentsWriterStallControl.stalled:Z
iload 1
if_icmpeq 5
1: aload 0
iload 1
putfield org.apache.lucene.index.DocumentsWriterStallControl.stalled:Z
2: iload 1
ifeq 4
3: aload 0
iconst_1
putfield org.apache.lucene.index.DocumentsWriterStallControl.wasStalled:Z
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.Object.notifyAll:()V
5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/lucene/index/DocumentsWriterStallControl;
0 6 1 stalled Z
MethodParameters:
Name Flags
stalled
void waitIfStalled();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.index.DocumentsWriterStallControl.stalled:Z
ifeq 13
1: aload 0
dup
astore 1
monitorenter
2: aload 0
getfield org.apache.lucene.index.DocumentsWriterStallControl.stalled:Z
ifeq 9
3: aload 0
invokevirtual org.apache.lucene.index.DocumentsWriterStallControl.incWaiters:()V
4: aload 0
ldc 1000
invokevirtual java.lang.Object.wait:(J)V
5: aload 0
invokevirtual org.apache.lucene.index.DocumentsWriterStallControl.decrWaiters:()V
6: goto 9
StackMap locals: org.apache.lucene.index.DocumentsWriterStallControl org.apache.lucene.index.DocumentsWriterStallControl
StackMap stack: java.lang.InterruptedException
7: astore 2
start local 2 8: new org.apache.lucene.util.ThreadInterruptedException
dup
aload 2
invokespecial org.apache.lucene.util.ThreadInterruptedException.<init>:(Ljava/lang/InterruptedException;)V
athrow
end local 2 9: StackMap locals:
StackMap stack:
aload 1
monitorexit
10: goto 13
StackMap locals:
StackMap stack: java.lang.Throwable
11: aload 1
monitorexit
12: athrow
13: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/apache/lucene/index/DocumentsWriterStallControl;
8 9 2 e Ljava/lang/InterruptedException;
Exception table:
from to target type
3 6 7 Class java.lang.InterruptedException
2 10 11 any
11 12 11 any
boolean anyStalledThreads();
descriptor: ()Z
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.index.DocumentsWriterStallControl.stalled:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/index/DocumentsWriterStallControl;
private void incWaiters();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
dup
getfield org.apache.lucene.index.DocumentsWriterStallControl.numWaiting:I
iconst_1
iadd
putfield org.apache.lucene.index.DocumentsWriterStallControl.numWaiting:I
1: getstatic org.apache.lucene.index.DocumentsWriterStallControl.$assertionsDisabled:Z
ifne 2
aload 0
getfield org.apache.lucene.index.DocumentsWriterStallControl.waiting:Ljava/util/Map;
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
getstatic java.lang.Boolean.TRUE:Ljava/lang/Boolean;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
ifnull 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
getstatic org.apache.lucene.index.DocumentsWriterStallControl.$assertionsDisabled:Z
ifne 3
aload 0
getfield org.apache.lucene.index.DocumentsWriterStallControl.numWaiting:I
ifgt 3
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/lucene/index/DocumentsWriterStallControl;
private void decrWaiters();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
dup
getfield org.apache.lucene.index.DocumentsWriterStallControl.numWaiting:I
iconst_1
isub
putfield org.apache.lucene.index.DocumentsWriterStallControl.numWaiting:I
1: getstatic org.apache.lucene.index.DocumentsWriterStallControl.$assertionsDisabled:Z
ifne 2
aload 0
getfield org.apache.lucene.index.DocumentsWriterStallControl.waiting:Ljava/util/Map;
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
ifnonnull 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
getstatic org.apache.lucene.index.DocumentsWriterStallControl.$assertionsDisabled:Z
ifne 3
aload 0
getfield org.apache.lucene.index.DocumentsWriterStallControl.numWaiting:I
ifge 3
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/lucene/index/DocumentsWriterStallControl;
synchronized boolean hasBlocked();
descriptor: ()Z
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.index.DocumentsWriterStallControl.numWaiting:I
ifle 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/lucene/index/DocumentsWriterStallControl;
boolean isHealthy();
descriptor: ()Z
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.index.DocumentsWriterStallControl.stalled:Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/lucene/index/DocumentsWriterStallControl;
synchronized boolean isThreadQueued(java.lang.Thread);
descriptor: (Ljava/lang/Thread;)Z
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.lucene.index.DocumentsWriterStallControl.waiting:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/index/DocumentsWriterStallControl;
0 1 1 t Ljava/lang/Thread;
MethodParameters:
Name Flags
t
synchronized boolean wasStalled();
descriptor: ()Z
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.index.DocumentsWriterStallControl.wasStalled:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/index/DocumentsWriterStallControl;
}
SourceFile: "DocumentsWriterStallControl.java"