| Modifier and Type | Field and Description |
|---|---|
| private final long[] | |
| private int | |
| pack-priv final PoolChunk | |
| pack-priv boolean | |
| pack-priv int | |
| private final ReentrantLock | |
| private int | |
| pack-priv PoolSubpage | |
| private int | |
| private int | |
| private final int | |
| pack-priv PoolSubpage | |
| private final int | |
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | PoolSubpage(PoolSubpage head, PoolChunk chunk, int pageShifts, int runOffset, int runSize, int elemSize)
|
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| pack-priv long | |
| pack-priv void | |
| public int | elementSize()
Implements io. |
| private int | |
| private int | |
| pack-priv boolean | Returns: true if this subpage is in use.
false if this subpage is not used by its chunk and thus it's OK to be released.
|
| private int | |
| pack-priv void | |
| public int | maxNumElements()
Implements io. |
| public int | numAvailable()
Implements io. |
| public int | pageSize()
Implements io. |
| private void | |
| private void | |
| private long | |
| public String | |
| pack-priv void |
| bitmap | back to summary |
|---|---|
| private final long[] bitmap | |
| bitmapLength | back to summary |
|---|---|
| private int bitmapLength | |
| chunk | back to summary |
|---|---|
| pack-priv final PoolChunk chunk | |
| doNotDestroy | back to summary |
|---|---|
| pack-priv boolean doNotDestroy | |
| elemSize | back to summary |
|---|---|
| pack-priv int elemSize | |
| lock | back to summary |
|---|---|
| private final ReentrantLock lock | |
| maxNumElems | back to summary |
|---|---|
| private int maxNumElems | |
| next | back to summary |
|---|---|
| pack-priv PoolSubpage next | |
| nextAvail | back to summary |
|---|---|
| private int nextAvail | |
| numAvail | back to summary |
|---|---|
| private int numAvail | |
| pageShifts | back to summary |
|---|---|
| private final int pageShifts | |
| prev | back to summary |
|---|---|
| pack-priv PoolSubpage prev | |
| runOffset | back to summary |
|---|---|
| private final int runOffset | |
| runSize | back to summary |
|---|---|
| private final int runSize | |
| PoolSubpage | back to summary |
|---|---|
| pack-priv PoolSubpage() Special constructor that creates a linked list head | |
| PoolSubpage | back to summary |
|---|---|
| pack-priv PoolSubpage(PoolSubpage head, PoolChunk chunk, int pageShifts, int runOffset, int runSize, int elemSize) | |
| addToPool | back to summary |
|---|---|
| private void addToPool(PoolSubpage head) | |
| allocate | back to summary |
|---|---|
| pack-priv long allocate() Returns the bitmap index of the subpage allocation. | |
| destroy | back to summary |
|---|---|
| pack-priv void destroy() | |
| elementSize | back to summary |
|---|---|
| public int elementSize() Implements io. Doc from io. Return the size (in bytes) of the elements that will be allocated.
| |
| findNextAvail | back to summary |
|---|---|
| private int findNextAvail() | |
| findNextAvail0 | back to summary |
|---|---|
| private int findNextAvail0(int i, long bits) | |
| free | back to summary |
|---|---|
pack-priv boolean free(PoolSubpage head, int bitmapIdx)
| |
| getNextAvail | back to summary |
|---|---|
| private int getNextAvail() | |
| lock | back to summary |
|---|---|
| pack-priv void lock() | |
| maxNumElements | back to summary |
|---|---|
| public int maxNumElements() Implements io. Doc from io. Return the number of maximal elements that can be allocated out of the sub-page.
| |
| numAvailable | back to summary |
|---|---|
| public int numAvailable() Implements io. Doc from io. Return the number of available elements to be allocated.
| |
| pageSize | back to summary |
|---|---|
| public int pageSize() Implements io. Doc from io. Return the page size (in bytes) of this page.
| |
| removeFromPool | back to summary |
|---|---|
| private void removeFromPool() | |
| setNextAvail | back to summary |
|---|---|
| private void setNextAvail(int bitmapIdx) | |
| toHandle | back to summary |
|---|---|
| private long toHandle(int bitmapIdx) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| unlock | back to summary |
|---|---|
| pack-priv void unlock() | |