]
Marko Lukša updated ISPN-2889:
------------------------------
Git Pull Request:
AbstractIterator shouldn't allocate a larger result array than is
necessary
---------------------------------------------------------------------------
Key: ISPN-2889
URL:
https://issues.jboss.org/browse/ISPN-2889
Project: Infinispan
Issue Type: Enhancement
Components: Querying
Reporter: Marko Lukša
Assignee: Marko Lukša
Fix For: 5.3.0.Alpha1
Currently {{AbstractIterator}} (superclass of LazyIterator and EagerIterator) always
allocates an {{Object[]}} array of size {{fetchSize}}, even when the actual number of
results is smaller than {{fetchSize}}.
This is especially problematic when the user wants to fetch all the results at once (by
setting fetchSize to a very large number such as Integer.MAX_VALUE). This results in an
OutOfMemoryError: Requested array size exceeds VM limit.
Since the number of results is known up-front, {{AbstractIterator}} can allocate a
smaller array.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: