[infinispan-issues] [JBoss JIRA] (ISPN-2889) AbstractIterator shouldn't allocate a larger result array than is necessary
Marko Lukša (JIRA)
jira-events at lists.jboss.org
Tue Mar 5 09:46:57 EST 2013
[ https://issues.jboss.org/browse/ISPN-2889?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marko Lukša updated ISPN-2889:
------------------------------
Git Pull Request: https://github.com/infinispan/infinispan/pull/1701
Pull request is at https://github.com/infinispan/infinispan/pull/1701
> 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