[
https://issues.apache.org/jira/browse/CALCITE-2717?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Julian Hyde resolved CALCITE-2717.
----------------------------------
Resolution: Fixed
Fix Version/s: 1.18.0
Fixed in
[de9a7164|http://git-wip-us.apache.org/repos/asf/calcite/commit/de9a7164];
thanks for the PR, [~hyuan]!
> 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
> Priority: Major
> Fix For: 1.18.0
>
>
> 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)