Search in sources :

Example 1 with J9PoolPuddleListPointer

use of com.ibm.j9ddr.vm29.pointer.generated.J9PoolPuddleListPointer in project openj9 by eclipse.

the class Pool_29_V0 method capacity.

@Override
public long capacity() {
    long numElements = 0;
    try {
        J9PoolPuddleListPointer puddleList = J9PoolPuddleListPointer.cast(pool.puddleList());
        J9PoolPuddlePointer walk = puddleList.nextPuddle();
        while (!walk.isNull()) {
            numElements += pool.elementsPerPuddle().longValue();
            walk = walk.nextPuddle();
        }
    } catch (CorruptDataException e) {
        return 0;
    }
    return numElements;
}
Also used : CorruptDataException(com.ibm.j9ddr.CorruptDataException) J9PoolPuddleListPointer(com.ibm.j9ddr.vm29.pointer.generated.J9PoolPuddleListPointer) J9PoolPuddlePointer(com.ibm.j9ddr.vm29.pointer.generated.J9PoolPuddlePointer)

Example 2 with J9PoolPuddleListPointer

use of com.ibm.j9ddr.vm29.pointer.generated.J9PoolPuddleListPointer in project openj9 by eclipse.

the class Pool_29_V0 method pool_startDo.

private VoidPointer pool_startDo() throws CorruptDataException {
    slot = 0;
    J9PoolPuddleListPointer puddleList = J9PoolPuddleListPointer.cast(pool.puddleList());
    return poolPuddle_startDo(puddleList.nextPuddle(), true);
}
Also used : J9PoolPuddleListPointer(com.ibm.j9ddr.vm29.pointer.generated.J9PoolPuddleListPointer)

Aggregations

J9PoolPuddleListPointer (com.ibm.j9ddr.vm29.pointer.generated.J9PoolPuddleListPointer)2 CorruptDataException (com.ibm.j9ddr.CorruptDataException)1 J9PoolPuddlePointer (com.ibm.j9ddr.vm29.pointer.generated.J9PoolPuddlePointer)1