Open stgeke opened 8 months ago
I think https://github.com/libocca/occa/blob/main/src/occa/internal/core/memoryPool.cpp#L131 should be changed to:
} else { - resize(reserved + alignedBytes); + resize(offset + alignedBytes); return slice(reserved, bytes); }
I was wrong. Current implementation is correct.
Actually, there is an issue for the corner case size == reserved + alignedBytes.
size == reserved + alignedBytes
@stgeke Is this still an issue?
Yeah, this needs to be fixed.
I think https://github.com/libocca/occa/blob/main/src/occa/internal/core/memoryPool.cpp#L131 should be changed to: