You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Alexand Polyakov (JIRA)" <ji...@apache.org> on 2018/09/11 13:55:00 UTC
[jira] [Commented] (IGNITE-9544) BinaryOutputStream#writeByte
excessive copying after reaching 1Gb
[ https://issues.apache.org/jira/browse/IGNITE-9544?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16610626#comment-16610626 ]
Alexand Polyakov commented on IGNITE-9544:
------------------------------------------
{code:java}
if (reqCap>Integer.MAX_VALUE - 8)
{code}
throw error
> BinaryOutputStream#writeByte excessive copying after reaching 1Gb
> -----------------------------------------------------------------
>
> Key: IGNITE-9544
> URL: https://issues.apache.org/jira/browse/IGNITE-9544
> Project: Ignite
> Issue Type: Improvement
> Reporter: Alexand Polyakov
> Priority: Major
>
> need correction org.apache.ignite.internal.binary.streams.BinaryAbstractOutputStream#capacity
> {code:java}
> if (newCap < reqCap)
> newCap=Integer.MAX_VALUE - 8;
> {code}
> see java.util.ArrayList#MAX_ARRAY_SIZE
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)