final class jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier implements jdk.internal.net.http.common.BufferSupplier
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier
super_class: java.lang.Object
{
private static final int POOL_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 3
private final java.nio.ByteBuffer[] pool;
descriptor: [Ljava/nio/ByteBuffer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final jdk.internal.net.http.HttpClientImpl client;
descriptor: Ljdk/internal/net/http/HttpClientImpl;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final jdk.internal.net.http.common.Logger debug;
descriptor: Ljdk/internal/net/http/common/Logger;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private int tail;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int count;
descriptor: I
flags: (0x0002) ACC_PRIVATE
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 Ljdk/internal/net/http/HttpClientImpl;
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 jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.$assertionsDisabled:Z
3: return
LocalVariableTable:
Start End Slot Name Signature
void <init>(jdk.internal.net.http.HttpClientImpl);
descriptor: (Ljdk/internal/net/http/HttpClientImpl;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_3
anewarray java.nio.ByteBuffer
putfield jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.pool:[Ljava/nio/ByteBuffer;
2: aload 0
aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast jdk.internal.net.http.HttpClientImpl
putfield jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.client:Ljdk/internal/net/http/HttpClientImpl;
3: aload 0
aload 1
getfield jdk.internal.net.http.HttpClientImpl.debug:Ljdk/internal/net/http/common/Logger;
putfield jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.debug:Ljdk/internal/net/http/common/Logger;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/net/http/HttpClientImpl$SSLDirectBufferSupplier;
0 5 1 client Ljdk/internal/net/http/HttpClientImpl;
MethodParameters:
Name Flags
client
public java.nio.ByteBuffer get();
descriptor: ()Ljava/nio/ByteBuffer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=2, args_size=1
start local 0 0: getstatic jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.$assertionsDisabled:Z
ifne 1
aload 0
getfield jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.client:Ljdk/internal/net/http/HttpClientImpl;
invokevirtual jdk.internal.net.http.HttpClientImpl.isSelectorThread:()Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
getstatic jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.$assertionsDisabled:Z
ifne 2
aload 0
getfield jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.tail:I
iconst_3
if_icmple 2
new java.lang.AssertionError
dup
new java.lang.StringBuilder
dup
ldc "allocate tail is "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.tail:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.tail:I
ifne 8
3: aload 0
getfield jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 5
4: aload 0
getfield jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.debug:Ljdk/internal/net/http/common/Logger;
ldc "ByteBuffer.allocateDirect(%d)"
iconst_1
anewarray java.lang.Object
dup
iconst_0
getstatic jdk.internal.net.http.common.Utils.BUFSIZE:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;[Ljava/lang/Object;)V
5: StackMap locals:
StackMap stack:
getstatic jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.$assertionsDisabled:Z
ifne 6
aload 0
dup
getfield jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.count:I
dup_x1
iconst_1
iadd
putfield jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.count:I
iconst_3
if_icmplt 6
new java.lang.AssertionError
dup
ldc "trying to allocate more than 3 buffers"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
6: StackMap locals:
StackMap stack:
getstatic jdk.internal.net.http.common.Utils.BUFSIZE:I
invokestatic java.nio.ByteBuffer.allocateDirect:(I)Ljava/nio/ByteBuffer;
astore 1
start local 1 7: goto 12
end local 1 8: StackMap locals:
StackMap stack:
getstatic jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.$assertionsDisabled:Z
ifne 9
aload 0
getfield jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.tail:I
ifgt 9
new java.lang.AssertionError
dup
new java.lang.StringBuilder
dup
ldc "non positive tail value: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.tail:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
9: StackMap locals:
StackMap stack:
aload 0
dup
getfield jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.tail:I
iconst_1
isub
putfield jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.tail:I
10: aload 0
getfield jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.pool:[Ljava/nio/ByteBuffer;
aload 0
getfield jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.tail:I
aaload
astore 1
start local 1 11: aload 0
getfield jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.pool:[Ljava/nio/ByteBuffer;
aload 0
getfield jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.tail:I
aconst_null
aastore
12: StackMap locals: java.nio.ByteBuffer
StackMap stack:
getstatic jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.$assertionsDisabled:Z
ifne 13
aload 1
invokevirtual java.nio.ByteBuffer.isDirect:()Z
ifne 13
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
13: StackMap locals:
StackMap stack:
getstatic jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.$assertionsDisabled:Z
ifne 14
aload 1
invokevirtual java.nio.ByteBuffer.position:()I
ifeq 14
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
14: StackMap locals:
StackMap stack:
getstatic jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.$assertionsDisabled:Z
ifne 15
aload 1
invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
ifne 15
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
15: StackMap locals:
StackMap stack:
getstatic jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.$assertionsDisabled:Z
ifne 16
aload 1
invokevirtual java.nio.ByteBuffer.limit:()I
getstatic jdk.internal.net.http.common.Utils.BUFSIZE:I
if_icmpeq 16
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
16: StackMap locals:
StackMap stack:
getstatic jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.$assertionsDisabled:Z
ifne 17
aload 0
getfield jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.tail:I
iconst_3
if_icmplt 17
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
17: StackMap locals:
StackMap stack:
getstatic jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.$assertionsDisabled:Z
ifne 18
aload 0
getfield jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.tail:I
ifge 18
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
18: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Ljdk/internal/net/http/HttpClientImpl$SSLDirectBufferSupplier;
7 8 1 buf Ljava/nio/ByteBuffer;
11 19 1 buf Ljava/nio/ByteBuffer;
public void recycle(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: getstatic jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.$assertionsDisabled:Z
ifne 1
aload 0
getfield jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.client:Ljdk/internal/net/http/HttpClientImpl;
invokevirtual jdk.internal.net.http.HttpClientImpl.isSelectorThread:()Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
getstatic jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.$assertionsDisabled:Z
ifne 2
aload 1
invokevirtual java.nio.ByteBuffer.isDirect:()Z
ifne 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
getstatic jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.$assertionsDisabled:Z
ifne 3
aload 1
invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
ifeq 3
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
3: StackMap locals:
StackMap stack:
getstatic jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.$assertionsDisabled:Z
ifne 4
aload 0
getfield jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.tail:I
iconst_3
if_icmplt 4
new java.lang.AssertionError
dup
new java.lang.StringBuilder
dup
ldc "recycle tail is "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.tail:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
4: StackMap locals:
StackMap stack:
getstatic jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.$assertionsDisabled:Z
ifne 5
aload 0
getfield jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.tail:I
ifge 5
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
5: StackMap locals:
StackMap stack:
aload 1
iconst_0
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/ByteBuffer;
pop
6: aload 1
aload 1
invokevirtual java.nio.ByteBuffer.capacity:()I
invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/ByteBuffer;
pop
7: aload 0
getfield jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.tail:I
iconst_3
if_icmpge 10
8: aload 0
getfield jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.pool:[Ljava/nio/ByteBuffer;
aload 0
getfield jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.tail:I
aload 1
aastore
9: aload 0
dup
getfield jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.tail:I
iconst_1
iadd
putfield jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.tail:I
10: StackMap locals:
StackMap stack:
getstatic jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.$assertionsDisabled:Z
ifne 11
aload 0
getfield jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.tail:I
iconst_3
if_icmple 11
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
11: StackMap locals:
StackMap stack:
getstatic jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.$assertionsDisabled:Z
ifne 12
aload 0
getfield jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.tail:I
ifgt 12
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
12: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljdk/internal/net/http/HttpClientImpl$SSLDirectBufferSupplier;
0 13 1 buffer Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
buffer
public java.lang.Object get();
descriptor: ()Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier.get:()Ljava/nio/ByteBuffer;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "HttpClientImpl.java"
NestHost: jdk.internal.net.http.HttpClientImpl
InnerClasses:
private final SSLDirectBufferSupplier = jdk.internal.net.http.HttpClientImpl$SSLDirectBufferSupplier of jdk.internal.net.http.HttpClientImpl