final class com.sun.webkit.network.ByteBufferPool$ByteBufferAllocatorImpl implements com.sun.webkit.network.ByteBufferAllocator
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: com.sun.webkit.network.ByteBufferPool$ByteBufferAllocatorImpl
super_class: java.lang.Object
{
private final java.util.concurrent.Semaphore semaphore;
descriptor: Ljava/util/concurrent/Semaphore;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
final com.sun.webkit.network.ByteBufferPool this$0;
descriptor: Lcom/sun/webkit/network/ByteBufferPool;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
private void <init>(com.sun.webkit.network.ByteBufferPool, int);
descriptor: (Lcom/sun/webkit/network/ByteBufferPool;I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=3
start local 0 start local 2 0: aload 0
aload 1
putfield com.sun.webkit.network.ByteBufferPool$ByteBufferAllocatorImpl.this$0:Lcom/sun/webkit/network/ByteBufferPool;
aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.concurrent.Semaphore
dup
iload 2
invokespecial java.util.concurrent.Semaphore.<init>:(I)V
putfield com.sun.webkit.network.ByteBufferPool$ByteBufferAllocatorImpl.semaphore:Ljava/util/concurrent/Semaphore;
2: return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/webkit/network/ByteBufferPool$ByteBufferAllocatorImpl;
0 3 2 maxBufferCount I
MethodParameters:
Name Flags
this$0 final
maxBufferCount
public java.nio.ByteBuffer allocate();
descriptor: ()Ljava/nio/ByteBuffer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
getfield com.sun.webkit.network.ByteBufferPool$ByteBufferAllocatorImpl.semaphore:Ljava/util/concurrent/Semaphore;
invokevirtual java.util.concurrent.Semaphore.acquire:()V
1: aload 0
getfield com.sun.webkit.network.ByteBufferPool$ByteBufferAllocatorImpl.this$0:Lcom/sun/webkit/network/ByteBufferPool;
getfield com.sun.webkit.network.ByteBufferPool.byteBuffers:Ljava/util/Queue;
invokeinterface java.util.Queue.poll:()Ljava/lang/Object;
checkcast java.nio.ByteBuffer
astore 1
start local 1 2: aload 1
ifnonnull 4
3: aload 0
getfield com.sun.webkit.network.ByteBufferPool$ByteBufferAllocatorImpl.this$0:Lcom/sun/webkit/network/ByteBufferPool;
getfield com.sun.webkit.network.ByteBufferPool.bufferSize:I
invokestatic java.nio.ByteBuffer.allocateDirect:(I)Ljava/nio/ByteBuffer;
astore 1
4: StackMap locals: java.nio.ByteBuffer
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/webkit/network/ByteBufferPool$ByteBufferAllocatorImpl;
2 5 1 byteBuffer Ljava/nio/ByteBuffer;
Exceptions:
throws java.lang.InterruptedException
public void release(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.webkit.network.ByteBufferPool$ByteBufferAllocatorImpl.this$0:Lcom/sun/webkit/network/ByteBufferPool;
getfield com.sun.webkit.network.ByteBufferPool.byteBuffers:Ljava/util/Queue;
aload 1
invokeinterface java.util.Queue.add:(Ljava/lang/Object;)Z
pop
1: aload 0
getfield com.sun.webkit.network.ByteBufferPool$ByteBufferAllocatorImpl.semaphore:Ljava/util/concurrent/Semaphore;
invokevirtual java.util.concurrent.Semaphore.release:()V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/webkit/network/ByteBufferPool$ByteBufferAllocatorImpl;
0 3 1 byteBuffer Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
byteBuffer
}
SourceFile: "ByteBufferPool.java"
NestHost: com.sun.webkit.network.ByteBufferPool
InnerClasses:
private final ByteBufferAllocatorImpl = com.sun.webkit.network.ByteBufferPool$ByteBufferAllocatorImpl of com.sun.webkit.network.ByteBufferPool