[ 
https://issues.apache.org/jira/browse/HDDS-9528?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17782296#comment-17782296
 ] 

Duong commented on HDDS-9528:
-----------------------------

We should use ReferenceQueue to watch objects being GCed.

Example: 
https://stackoverflow.com/questions/2629180/java-gc-is-there-a-way-to-determine-which-objects-collected

> Managed objects override finalize()
> -----------------------------------
>
>                 Key: HDDS-9528
>                 URL: https://issues.apache.org/jira/browse/HDDS-9528
>             Project: Apache Ozone
>          Issue Type: Improvement
>          Components: db
>            Reporter: Tsz-wo Sze
>            Priority: Major
>
> HDDS-9294 avoided creating Managed objects per get request.  However, we 
> still have
> - a ManagedReadOptions per db iterator.
> - a ManagedWriteBatch per RDBBatchOperation
> - snapshot related code using may Managed objects.
> Managed objects should not override finalize().



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to