public class jdk.dynalink.support.ChainedCallSite extends jdk.dynalink.support.AbstractRelinkableCallSite
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.dynalink.support.ChainedCallSite
super_class: jdk.dynalink.support.AbstractRelinkableCallSite
{
private static final java.lang.invoke.MethodHandle PRUNE_CATCHES;
descriptor: Ljava/lang/invoke/MethodHandle;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.invoke.MethodHandle PRUNE_SWITCHPOINTS;
descriptor: Ljava/lang/invoke/MethodHandle;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private java.lang.Object invocations;
descriptor: Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=7, locals=1, args_size=0
0: invokestatic java.lang.invoke.MethodHandles.lookup:()Ljava/lang/invoke/MethodHandles$Lookup;
ldc "prune"
ldc Ljava/lang/invoke/MethodHandle;
iconst_2
anewarray java.lang.Class
dup
iconst_0
1: ldc Ljava/lang/invoke/MethodHandle;
aastore
dup
iconst_1
getstatic java.lang.Boolean.TYPE:Ljava/lang/Class;
aastore
2: invokestatic jdk.dynalink.linker.support.Lookup.findOwnSpecial:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/Class;[Ljava/lang/Class;)Ljava/lang/invoke/MethodHandle;
astore 0
start local 0 3: aload 0
iconst_2
iconst_1
anewarray java.lang.Object
dup
iconst_0
iconst_1
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
aastore
invokestatic java.lang.invoke.MethodHandles.insertArguments:(Ljava/lang/invoke/MethodHandle;I[Ljava/lang/Object;)Ljava/lang/invoke/MethodHandle;
putstatic jdk.dynalink.support.ChainedCallSite.PRUNE_CATCHES:Ljava/lang/invoke/MethodHandle;
4: aload 0
iconst_2
iconst_1
anewarray java.lang.Object
dup
iconst_0
iconst_0
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
aastore
invokestatic java.lang.invoke.MethodHandles.insertArguments:(Ljava/lang/invoke/MethodHandle;I[Ljava/lang/Object;)Ljava/lang/invoke/MethodHandle;
putstatic jdk.dynalink.support.ChainedCallSite.PRUNE_SWITCHPOINTS:Ljava/lang/invoke/MethodHandle;
end local 0 5: return
LocalVariableTable:
Start End Slot Name Signature
3 5 0 PRUNE Ljava/lang/invoke/MethodHandle;
public void <init>(jdk.dynalink.CallSiteDescriptor);
descriptor: (Ljdk/dynalink/CallSiteDescriptor;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial jdk.dynalink.support.AbstractRelinkableCallSite.<init>:(Ljdk/dynalink/CallSiteDescriptor;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/dynalink/support/ChainedCallSite;
0 2 1 descriptor Ljdk/dynalink/CallSiteDescriptor;
MethodParameters:
Name Flags
descriptor final
protected int getMaxChainLength();
descriptor: ()I
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: bipush 8
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/dynalink/support/ChainedCallSite;
public void relink(jdk.dynalink.linker.GuardedInvocation, java.lang.invoke.MethodHandle);
descriptor: (Ljdk/dynalink/linker/GuardedInvocation;Ljava/lang/invoke/MethodHandle;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
iconst_0
iconst_0
invokevirtual jdk.dynalink.support.ChainedCallSite.relinkInternal:(Ljdk/dynalink/linker/GuardedInvocation;Ljava/lang/invoke/MethodHandle;ZZ)Ljava/lang/invoke/MethodHandle;
pop
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/dynalink/support/ChainedCallSite;
0 2 1 guardedInvocation Ljdk/dynalink/linker/GuardedInvocation;
0 2 2 relinkAndInvoke Ljava/lang/invoke/MethodHandle;
MethodParameters:
Name Flags
guardedInvocation final
relinkAndInvoke final
public void resetAndRelink(jdk.dynalink.linker.GuardedInvocation, java.lang.invoke.MethodHandle);
descriptor: (Ljdk/dynalink/linker/GuardedInvocation;Ljava/lang/invoke/MethodHandle;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
iconst_1
iconst_0
invokevirtual jdk.dynalink.support.ChainedCallSite.relinkInternal:(Ljdk/dynalink/linker/GuardedInvocation;Ljava/lang/invoke/MethodHandle;ZZ)Ljava/lang/invoke/MethodHandle;
pop
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/dynalink/support/ChainedCallSite;
0 2 1 guardedInvocation Ljdk/dynalink/linker/GuardedInvocation;
0 2 2 relinkAndInvoke Ljava/lang/invoke/MethodHandle;
MethodParameters:
Name Flags
guardedInvocation final
relinkAndInvoke final
private java.lang.invoke.MethodHandle relinkInternal(jdk.dynalink.linker.GuardedInvocation, java.lang.invoke.MethodHandle, boolean, boolean);
descriptor: (Ljdk/dynalink/linker/GuardedInvocation;Ljava/lang/invoke/MethodHandle;ZZ)Ljava/lang/invoke/MethodHandle;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=12, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
getfield jdk.dynalink.support.ChainedCallSite.invocations:Ljava/lang/Object;
astore 5
start local 5 1: aload 5
ifnull 2
iload 3
ifeq 4
2: StackMap locals: java.lang.Object
StackMap stack:
new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
astore 6
start local 6 3: goto 12
end local 6 StackMap locals:
StackMap stack:
4: aload 5
instanceof jdk.dynalink.linker.GuardedInvocation
ifeq 8
5: new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
astore 6
start local 6 6: aload 6
aload 5
checkcast jdk.dynalink.linker.GuardedInvocation
invokevirtual java.util.LinkedList.add:(Ljava/lang/Object;)Z
pop
7: goto 12
end local 6 StackMap locals:
StackMap stack:
8: aload 5
instanceof jdk.dynalink.linker.GuardedInvocation[]
ifeq 11
9: new java.util.LinkedList
dup
aload 5
checkcast jdk.dynalink.linker.GuardedInvocation[]
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokespecial java.util.LinkedList.<init>:(Ljava/util/Collection;)V
astore 6
start local 6 10: goto 12
end local 6 11: StackMap locals:
StackMap stack:
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
start local 6 12: StackMap locals: java.util.LinkedList
StackMap stack:
aload 6
invokevirtual java.util.LinkedList.iterator:()Ljava/util/Iterator;
astore 7
start local 7 13: goto 17
14: StackMap locals: java.util.Iterator
StackMap stack:
aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.dynalink.linker.GuardedInvocation
astore 8
start local 8 15: aload 8
invokevirtual jdk.dynalink.linker.GuardedInvocation.hasBeenInvalidated:()Z
ifne 16
iload 4
ifeq 17
aload 8
invokevirtual jdk.dynalink.linker.GuardedInvocation.getException:()Ljava/lang/Class;
ifnull 17
16: StackMap locals: jdk.dynalink.linker.GuardedInvocation
StackMap stack:
aload 7
invokeinterface java.util.Iterator.remove:()V
end local 8 17: StackMap locals:
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 14
end local 7 18: aload 1
ifnull 22
19: aload 6
invokevirtual java.util.LinkedList.size:()I
aload 0
invokevirtual jdk.dynalink.support.ChainedCallSite.getMaxChainLength:()I
invokestatic jdk.dynalink.support.ChainedCallSite.checkMaxChainLength:(I)I
if_icmpne 21
20: aload 6
invokevirtual java.util.LinkedList.removeFirst:()Ljava/lang/Object;
pop
21: StackMap locals:
StackMap stack:
aload 6
aload 1
invokevirtual java.util.LinkedList.addLast:(Ljava/lang/Object;)V
22: StackMap locals:
StackMap stack:
aload 0
aload 2
getstatic jdk.dynalink.support.ChainedCallSite.PRUNE_SWITCHPOINTS:Ljava/lang/invoke/MethodHandle;
invokevirtual jdk.dynalink.support.ChainedCallSite.makePruneAndInvokeMethod:(Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodHandle;)Ljava/lang/invoke/MethodHandle;
astore 7
start local 7 23: aload 0
aload 2
getstatic jdk.dynalink.support.ChainedCallSite.PRUNE_CATCHES:Ljava/lang/invoke/MethodHandle;
invokevirtual jdk.dynalink.support.ChainedCallSite.makePruneAndInvokeMethod:(Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodHandle;)Ljava/lang/invoke/MethodHandle;
astore 8
start local 8 24: aload 2
astore 9
start local 9 25: aload 6
invokevirtual java.util.LinkedList.iterator:()Ljava/util/Iterator;
astore 11
goto 28
StackMap locals: jdk.dynalink.support.ChainedCallSite jdk.dynalink.linker.GuardedInvocation java.lang.invoke.MethodHandle int int java.lang.Object java.util.LinkedList java.lang.invoke.MethodHandle java.lang.invoke.MethodHandle java.lang.invoke.MethodHandle top java.util.Iterator
StackMap stack:
26: aload 11
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.dynalink.linker.GuardedInvocation
astore 10
start local 10 27: aload 10
aload 9
aload 7
aload 8
invokevirtual jdk.dynalink.linker.GuardedInvocation.compose:(Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodHandle;)Ljava/lang/invoke/MethodHandle;
astore 9
end local 10 28: StackMap locals:
StackMap stack:
aload 11
invokeinterface java.util.Iterator.hasNext:()Z
ifne 26
29: aload 6
invokevirtual java.util.LinkedList.size:()I
tableswitch { // 0 - 1
0: 30
1: 32
default: 34
}
30: StackMap locals: jdk.dynalink.support.ChainedCallSite jdk.dynalink.linker.GuardedInvocation java.lang.invoke.MethodHandle int int java.lang.Object java.util.LinkedList java.lang.invoke.MethodHandle java.lang.invoke.MethodHandle java.lang.invoke.MethodHandle
StackMap stack:
aload 0
aconst_null
putfield jdk.dynalink.support.ChainedCallSite.invocations:Ljava/lang/Object;
31: goto 35
32: StackMap locals:
StackMap stack:
aload 0
aload 6
invokevirtual java.util.LinkedList.getFirst:()Ljava/lang/Object;
putfield jdk.dynalink.support.ChainedCallSite.invocations:Ljava/lang/Object;
33: goto 35
34: StackMap locals:
StackMap stack:
aload 0
aload 6
iconst_0
anewarray jdk.dynalink.linker.GuardedInvocation
invokevirtual java.util.LinkedList.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
putfield jdk.dynalink.support.ChainedCallSite.invocations:Ljava/lang/Object;
35: StackMap locals:
StackMap stack:
aload 0
aload 9
invokevirtual jdk.dynalink.support.ChainedCallSite.setTarget:(Ljava/lang/invoke/MethodHandle;)V
36: aload 9
areturn
end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 37 0 this Ljdk/dynalink/support/ChainedCallSite;
0 37 1 invocation Ljdk/dynalink/linker/GuardedInvocation;
0 37 2 relink Ljava/lang/invoke/MethodHandle;
0 37 3 reset Z
0 37 4 removeCatches Z
1 37 5 currentInvocations Ljava/lang/Object;
3 4 6 newInvocations Ljava/util/LinkedList<Ljdk/dynalink/linker/GuardedInvocation;>;
6 8 6 newInvocations Ljava/util/LinkedList<Ljdk/dynalink/linker/GuardedInvocation;>;
10 11 6 newInvocations Ljava/util/LinkedList<Ljdk/dynalink/linker/GuardedInvocation;>;
12 37 6 newInvocations Ljava/util/LinkedList<Ljdk/dynalink/linker/GuardedInvocation;>;
13 18 7 it Ljava/util/Iterator<Ljdk/dynalink/linker/GuardedInvocation;>;
15 17 8 inv Ljdk/dynalink/linker/GuardedInvocation;
23 37 7 pruneAndInvokeSwitchPoints Ljava/lang/invoke/MethodHandle;
24 37 8 pruneAndInvokeCatches Ljava/lang/invoke/MethodHandle;
25 37 9 target Ljava/lang/invoke/MethodHandle;
27 28 10 inv Ljdk/dynalink/linker/GuardedInvocation;
MethodParameters:
Name Flags
invocation final
relink final
reset final
removeCatches final
private static int checkMaxChainLength(int);
descriptor: (I)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: iload 0
ifle 2
1: iload 0
ireturn
2: StackMap locals:
StackMap stack:
new java.lang.RuntimeException
dup
ldc "getMaxChainLength() returned a non-positive value"
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 maxChainLength I
MethodParameters:
Name Flags
maxChainLength final
private java.lang.invoke.MethodHandle makePruneAndInvokeMethod(java.lang.invoke.MethodHandle, java.lang.invoke.MethodHandle);
descriptor: (Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodHandle;)Ljava/lang/invoke/MethodHandle;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 2
iconst_0
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 0
aastore
dup
iconst_1
aload 1
aastore
invokestatic java.lang.invoke.MethodHandles.insertArguments:(Ljava/lang/invoke/MethodHandle;I[Ljava/lang/Object;)Ljava/lang/invoke/MethodHandle;
astore 3
start local 3 1: aload 3
iconst_0
aload 0
invokevirtual jdk.dynalink.support.ChainedCallSite.type:()Ljava/lang/invoke/MethodType;
invokevirtual java.lang.invoke.MethodType.parameterList:()Ljava/util/List;
invokestatic java.lang.invoke.MethodHandles.dropArguments:(Ljava/lang/invoke/MethodHandle;ILjava/util/List;)Ljava/lang/invoke/MethodHandle;
astore 4
start local 4 2: aload 0
invokevirtual jdk.dynalink.support.ChainedCallSite.type:()Ljava/lang/invoke/MethodType;
invokestatic java.lang.invoke.MethodHandles.exactInvoker:(Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/MethodHandle;
aload 4
invokestatic java.lang.invoke.MethodHandles.foldArguments:(Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodHandle;)Ljava/lang/invoke/MethodHandle;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/dynalink/support/ChainedCallSite;
0 3 1 relinkAndInvoke Ljava/lang/invoke/MethodHandle;
0 3 2 prune Ljava/lang/invoke/MethodHandle;
1 3 3 boundPrune Ljava/lang/invoke/MethodHandle;
2 3 4 ignoreArgsPrune Ljava/lang/invoke/MethodHandle;
MethodParameters:
Name Flags
relinkAndInvoke final
prune final
private java.lang.invoke.MethodHandle prune(java.lang.invoke.MethodHandle, boolean);
descriptor: (Ljava/lang/invoke/MethodHandle;Z)Ljava/lang/invoke/MethodHandle;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aconst_null
aload 1
iconst_0
iload 2
invokevirtual jdk.dynalink.support.ChainedCallSite.relinkInternal:(Ljdk/dynalink/linker/GuardedInvocation;Ljava/lang/invoke/MethodHandle;ZZ)Ljava/lang/invoke/MethodHandle;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/dynalink/support/ChainedCallSite;
0 1 1 relink Ljava/lang/invoke/MethodHandle;
0 1 2 catches Z
MethodParameters:
Name Flags
relink final
catches final
}
SourceFile: "ChainedCallSite.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles