[infinispan-issues] [JBoss JIRA] (ISPN-2889) AbstractIterator shouldn't allocate a larger result array than is necessary
Sanne Grinovero (JIRA)
jira-events at lists.jboss.org
Thu Mar 7 11:05:42 EST 2013
[ https://issues.jboss.org/browse/ISPN-2889?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sanne Grinovero updated ISPN-2889:
----------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
> 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: http://www.atlassian.com/software/jira
More information about the infinispan-issues
mailing list