Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-1599

Change the method call to allocate memory for the new array {CopyOnWriteArray to Array conversion}

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0.0-incubating.M3
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            nnag Nabarun Nag
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: