ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexand Polyakov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IGNITE-9544) BinaryOutputStream#writeByte excessive copying after reaching 1Gb
Date Tue, 11 Sep 2018 13:55:00 GMT

    [ 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)

Mime
View raw message