private static final class ClosurePool.Magazine
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
ClosurePool.Magazine.Slot |
| Modifier and Type | Field and Description |
|---|---|
private CallContext |
ctx |
private Foreign |
foreign
A handle to the foreign interface to keep it alive as long as this object is alive
|
private int |
freeCount |
private static MemoryIO |
IO
Store a reference to the MemoryIO accessor here for easy access
|
private long |
magazine |
private int |
next |
private ClosurePool.Magazine.Slot[] |
slots |
| Constructor and Description |
|---|
Magazine(CallContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
finalize() |
(package private) ClosurePool.Magazine.Slot |
get() |
(package private) boolean |
isEmpty() |
(package private) boolean |
isFull() |
(package private) void |
recycle() |
private static final MemoryIO IO
private final Foreign foreign
private final CallContext ctx
private final long magazine
private final ClosurePool.Magazine.Slot[] slots
private int next
private int freeCount
Magazine(CallContext ctx)
ClosurePool.Magazine.Slot get()
boolean isFull()
boolean isEmpty()
void recycle()
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable