[
https://issues.apache.org/jira/browse/LUCENE-3541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13138393#comment-13138393
]
Uwe Schindler commented on LUCENE-3541:
---------------------------------------
It's horrible: When you clone this IndexInput and then in another thread start
another copy operation, both will override the others buffer contents. What's
the reason for having this as instance variable. If you create the byte[] in
the method and it's unused afterwards it happily resides in eden space....
> remove IndexInput.copyBuf
> -------------------------
>
> Key: LUCENE-3541
> URL: https://issues.apache.org/jira/browse/LUCENE-3541
> Project: Lucene - Java
> Issue Type: Bug
> Reporter: Robert Muir
> Fix For: 3.5, 4.0
>
>
> this looks really broken/dangerous as an instance variable.
> what happens on clone() ?! copyBytes can instead make its own array inside
> the method.
> its protected, so ill list in the 3.x backwards breaks section since its
> technically a backwards break.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]