You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Darrel Schneider (JIRA)" <ji...@apache.org> on 2016/04/15 20:38:25 UTC
[jira] [Created] (GEODE-1238) EntryEventImpl creators must be
careful to release to prevent off-heap leaks
Darrel Schneider created GEODE-1238:
---------------------------------------
Summary: EntryEventImpl creators must be careful to release to prevent off-heap leaks
Key: GEODE-1238
URL: https://issues.apache.org/jira/browse/GEODE-1238
Project: Geode
Issue Type: Bug
Components: offheap
Reporter: Darrel Schneider
When an instance of EntryEventImpl is created the creator needs to make sure release() is called on it or make sure it can not have off-heap references.
If the method that created the EntryEventImpl always releases it before the method completes then it should add the @Released annotation to the local variable.
If the method that created the EntryEventImpl returns it to the caller then that method and the local variable should annotated with @Retained.
If it knows the EntryEventImpl will never have an off-heap reference then a comment to the local variable should be added explaining why release is not needed.
If it knows that the EntryEventImpl will be stored in some other object and it has responsibility for releasing it then a comment should be added saying so.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)