public class java.util.concurrent.CountDownLatch
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: java.util.concurrent.CountDownLatch
super_class: java.lang.Object
{
private final java.util.concurrent.CountDownLatch$Sync sync;
descriptor: Ljava/util/concurrent/CountDownLatch$Sync;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: iload 1
ifge 2
new java.lang.IllegalArgumentException
dup
ldc "count < 0"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals: java.util.concurrent.CountDownLatch int
StackMap stack:
aload 0
new java.util.concurrent.CountDownLatch$Sync
dup
iload 1
invokespecial java.util.concurrent.CountDownLatch$Sync.<init>:(I)V
putfield java.util.concurrent.CountDownLatch.sync:Ljava/util/concurrent/CountDownLatch$Sync;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/util/concurrent/CountDownLatch;
0 4 1 count I
MethodParameters:
Name Flags
count
public void await();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield java.util.concurrent.CountDownLatch.sync:Ljava/util/concurrent/CountDownLatch$Sync;
iconst_1
invokevirtual java.util.concurrent.CountDownLatch$Sync.acquireSharedInterruptibly:(I)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/util/concurrent/CountDownLatch;
Exceptions:
throws java.lang.InterruptedException
public boolean await(long, java.util.concurrent.TimeUnit);
descriptor: (JLjava/util/concurrent/TimeUnit;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 3 0: aload 0
getfield java.util.concurrent.CountDownLatch.sync:Ljava/util/concurrent/CountDownLatch$Sync;
iconst_1
aload 3
lload 1
invokevirtual java.util.concurrent.TimeUnit.toNanos:(J)J
invokevirtual java.util.concurrent.CountDownLatch$Sync.tryAcquireSharedNanos:(IJ)Z
ireturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/concurrent/CountDownLatch;
0 1 1 timeout J
0 1 3 unit Ljava/util/concurrent/TimeUnit;
Exceptions:
throws java.lang.InterruptedException
MethodParameters:
Name Flags
timeout
unit
public void countDown();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield java.util.concurrent.CountDownLatch.sync:Ljava/util/concurrent/CountDownLatch$Sync;
iconst_1
invokevirtual java.util.concurrent.CountDownLatch$Sync.releaseShared:(I)Z
pop
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/util/concurrent/CountDownLatch;
public long getCount();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield java.util.concurrent.CountDownLatch.sync:Ljava/util/concurrent/CountDownLatch$Sync;
invokevirtual java.util.concurrent.CountDownLatch$Sync.getCount:()I
i2l
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/concurrent/CountDownLatch;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
aload 0
invokespecial java.lang.Object.toString:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "[Count = "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield java.util.concurrent.CountDownLatch.sync:Ljava/util/concurrent/CountDownLatch$Sync;
invokevirtual java.util.concurrent.CountDownLatch$Sync.getCount:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/concurrent/CountDownLatch;
}
SourceFile: "CountDownLatch.java"
NestMembers:
java.util.concurrent.CountDownLatch$Sync
InnerClasses:
private final Sync = java.util.concurrent.CountDownLatch$Sync of java.util.concurrent.CountDownLatch