hsyuan commented on issue #1875: [CALCITE-3873] Use global caching for 
ReflectiveVisitDispatcher implementation
URL: https://github.com/apache/calcite/pull/1875#issuecomment-611872164
 
 
   >   > it describes "Weak values will be garbage collected once they are 
weakly reachable. This makes them a poor candidate for caching; consider {@link 
#softValues} instead."
   >
   > The keys can still reference classes and retain them from the garbage 
collector.
   
   @vlsi By using `softValues`, once the value is garbage collected, the 
reference to key will also be released.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to