public void release(T element) {
        if (!element.isPooled()) {
            if (mInfinite || mPoolCount < mLimit) {
                mPoolCount++;
                element.setNextPoolable(mRoot);
                element.setPooled(true);
                mRoot = element;
            }
            mManager.onReleased(element);
        } else {
            System.out.print("[FinitePool] Element is already in pool: " + element);
        }
    }
Number of objects in the pool
app/src/main/java/com/sunnyweather/android/flame/master/flame/danmaku/danmaku/model/objectpool/FinitePool.java