You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Haisheng Yuan (JIRA)" <ji...@apache.org> on 2018/11/29 02:36:00 UTC

[jira] [Created] (CALCITE-2717) Cached traits in RelTraitDef's canonicalMap can't be garbage-collected

Haisheng Yuan created CALCITE-2717:
--------------------------------------

             Summary: Cached traits in RelTraitDef's canonicalMap can't be garbage-collected 
                 Key: CALCITE-2717
                 URL: https://issues.apache.org/jira/browse/CALCITE-2717
             Project: Calcite
          Issue Type: Bug
          Components: core
            Reporter: Haisheng Yuan
            Assignee: Julian Hyde


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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)