final class com.oracle.truffle.api.instrumentation.test.AllocationReporterListener implements java.util.function.Consumer<java.lang.Boolean>
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: com.oracle.truffle.api.instrumentation.test.AllocationReporterListener
super_class: java.lang.Object
{
private final java.util.concurrent.atomic.AtomicInteger listenerCalls;
descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.oracle.truffle.api.instrumentation.AllocationReporter source;
descriptor: Lcom/oracle/truffle/api/instrumentation/AllocationReporter;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private void <init>(com.oracle.truffle.api.instrumentation.AllocationReporter, java.util.concurrent.atomic.AtomicInteger);
descriptor: (Lcom/oracle/truffle/api/instrumentation/AllocationReporter;Ljava/util/concurrent/atomic/AtomicInteger;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield com.oracle.truffle.api.instrumentation.test.AllocationReporterListener.source:Lcom/oracle/truffle/api/instrumentation/AllocationReporter;
2: aload 0
aload 2
putfield com.oracle.truffle.api.instrumentation.test.AllocationReporterListener.listenerCalls:Ljava/util/concurrent/atomic/AtomicInteger;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterListener;
0 4 1 source Lcom/oracle/truffle/api/instrumentation/AllocationReporter;
0 4 2 listenerCalls Ljava/util/concurrent/atomic/AtomicInteger;
MethodParameters:
Name Flags
source
listenerCalls
public void accept(java.lang.Boolean);
descriptor: (Ljava/lang/Boolean;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: iconst_1
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
aload 1
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
1: aload 0
getfield com.oracle.truffle.api.instrumentation.test.AllocationReporterListener.listenerCalls:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.incrementAndGet:()I
pop
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterListener;
0 3 1 active Ljava/lang/Boolean;
MethodParameters:
Name Flags
active
static com.oracle.truffle.api.instrumentation.test.AllocationReporterListener register(java.util.concurrent.atomic.AtomicInteger, com.oracle.truffle.api.instrumentation.AllocationReporter);
descriptor: (Ljava/util/concurrent/atomic/AtomicInteger;Lcom/oracle/truffle/api/instrumentation/AllocationReporter;)Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterListener;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: new com.oracle.truffle.api.instrumentation.test.AllocationReporterListener
dup
aload 1
aload 0
invokespecial com.oracle.truffle.api.instrumentation.test.AllocationReporterListener.<init>:(Lcom/oracle/truffle/api/instrumentation/AllocationReporter;Ljava/util/concurrent/atomic/AtomicInteger;)V
astore 2
start local 2 1: aload 1
aload 2
invokevirtual com.oracle.truffle.api.instrumentation.AllocationReporter.addActiveListener:(Ljava/util/function/Consumer;)V
2: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 listenerCalls Ljava/util/concurrent/atomic/AtomicInteger;
0 3 1 reporter Lcom/oracle/truffle/api/instrumentation/AllocationReporter;
1 3 2 activatedListener Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterListener;
MethodParameters:
Name Flags
listenerCalls
reporter
void unregister();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.api.instrumentation.test.AllocationReporterListener.source:Lcom/oracle/truffle/api/instrumentation/AllocationReporter;
aload 0
invokevirtual com.oracle.truffle.api.instrumentation.AllocationReporter.removeActiveListener:(Ljava/util/function/Consumer;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/api/instrumentation/test/AllocationReporterListener;
public void accept(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast java.lang.Boolean
invokevirtual com.oracle.truffle.api.instrumentation.test.AllocationReporterListener.accept:(Ljava/lang/Boolean;)V
return
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Ljava/util/function/Consumer<Ljava/lang/Boolean;>;
SourceFile: "AllocationReporterListener.java"