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)

Reply via email to