Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-2717

Cached traits in RelTraitDef's canonicalMap can't be garbage-collected

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.18.0
    • Component/s: core
    • Labels:
      None

      Description

      Softly-referenced objects will be garbage-collected in a globally least-recently-used manner, in response to memory demand. Even though canonicalMap's value is soft referenced, key is strong referenced, key and value are referencing the same object. So traits in the cache will never be garbage-collected, which may cause OOM if we have tons of different traits.

        Attachments

          Activity

            People

            • Assignee:
              julianhyde Julian Hyde
              Reporter:
              hyuan Haisheng Yuan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: