[ 
https://issues.apache.org/jira/browse/LUCENE-2217?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12801254#action_12801254
 ] 

Michael McCandless commented on LUCENE-2217:
--------------------------------------------

Actually the patch isn't quite right, I think?  First, it just calls 
ArrayUtil.getNextSize w/o passing that to resizeBytes?

Second, it needs to pass lastBytePos + MAX_BYTES_PER_INT as the arg to 
ArrayUtil.getNextSize (ie, that's the "min target size")?

> SortedVIntList allocation should use ArrayUtils.getNextSize()
> -------------------------------------------------------------
>
>                 Key: LUCENE-2217
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2217
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Other
>            Reporter: Paul Elschot
>            Assignee: Michael McCandless
>            Priority: Trivial
>         Attachments: LUCENE-2217.patch
>
>
> See recent discussion on ArrayUtils.getNextSize().

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-dev-h...@lucene.apache.org

Reply via email to