You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Viraj Jasani (Jira)" <ji...@apache.org> on 2021/01/04 12:05:00 UTC
[jira] [Updated] (PHOENIX-6295) Fix non-static inner classes for
better memory management
[ https://issues.apache.org/jira/browse/PHOENIX-6295?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Viraj Jasani updated PHOENIX-6295:
----------------------------------
Affects Version/s: 5.0.0
4.15.0
> Fix non-static inner classes for better memory management
> ---------------------------------------------------------
>
> Key: PHOENIX-6295
> URL: https://issues.apache.org/jira/browse/PHOENIX-6295
> Project: Phoenix
> Issue Type: Bug
> Affects Versions: 5.0.0, 4.15.0
> Reporter: Viraj Jasani
> Priority: Major
>
> If an inner class does not need to reference its enclosing instance, it can be static. This prevents a common cause of memory leaks and uses less memory per instance of the class (enclosing).
> Came across StatsDeleteHandler as a non static inner class defined in MetaDataEndpointImpl without holding any implicit reference to MetaDataEndpointImpl. Taking this opportunity to find other non-static inner classes that are not holding implicit reference to their respective enclosing instances.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)