[
https://issues.apache.org/jira/browse/CALCITE-3149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17085399#comment-17085399
]
Danny Chen commented on CALCITE-3149:
-------------------------------------
Here is the WeakReference doc:
{quote}Suppose that the garbage collector determines at a certain point in time
that an object is weakly reachable. At that time it will atomically clear all
weak references to that object and all weak references to any other
weakly-reachable objects from which that object is reachable through a chain of
strong and soft references. At the same time it will declare all of the
formerly weakly-reachable objects to be finalizable. At the same time or at
some later time it will enqueue those newly-cleared weak references that are
registered with reference queues.{quote}
But i didn't get what it means [1].
[1] https://docs.oracle.com/javase/7/docs/api/java/lang/ref/WeakReference.html
> CACHE in RelDataTypeFactoryImpl can't be garbage collected
> -----------------------------------------------------------
>
> Key: CALCITE-3149
> URL: https://issues.apache.org/jira/browse/CALCITE-3149
> Project: Calcite
> Issue Type: Bug
> Components: core
> Reporter: Haisheng Yuan
> Assignee: Haisheng Yuan
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.21.0
>
> Time Spent: 2h 10m
> Remaining Estimate: 0h
>
> Key and Value are pointing to the same object, even with soft value
> references, the objects in CACHE will not be garbage collected.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)