You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "nabarun (JIRA)" <ji...@apache.org> on 2016/06/27 18:08:52 UTC
[jira] [Created] (GEODE-1599) Change the method call to allocate
memory for the new array {CopyOnWriteArray to Array conversion}
nabarun created GEODE-1599:
------------------------------
Summary: Change the method call to allocate memory for the new array {CopyOnWriteArray to Array conversion}
Key: GEODE-1599
URL: https://issues.apache.org/jira/browse/GEODE-1599
Project: Geode
Issue Type: Bug
Reporter: nabarun
return (Statistics[])statsList.toArray(new Statistics[statlist.size()]); must be converted to
(Statistics[])statsList.toArray(new Statistics[0]);
This is done to avoid a race condition, where the size of the CopyOnWriteArray increases after allocating the size for the array in which the CopyOnWriteArray is to be placed.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)