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

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

      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().

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

                Created:
                Updated:
                Resolved: