Uploaded image for project: 'JBoss Marshalling'
  1. JBoss Marshalling
  2. JBMAR-235

IdentityIntMap has a possibility to have a huge size of array and clear() can take longer time than expected

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 2.0.11.Final
    • 2.0.10.Final
    • Marshalling API
    • None

    Description

      JBoss Data Grid (Infinispan) uses JBoss Marshalling internally. When a replication object contains huge serialization data (e.g. an object contains a huge size of List<String> as a field, etc). IdentityIntMap has the possibility to have a huge size array. And since it will not shrink afterward, it will continue to hold more size than necessary, and the subsequent clear() call can take longer than expected because of invoking "Arrays.fill(keys, null)" against a huge array. Subsequent replication of large amounts of data may lead to transaction timeouts due to the increased cost of the clear().

      Attachments

        Activity

          People

            ropalka Richard Opalka
            rhn-support-mmiura Masafumi Miura
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: