You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The cluster object is ephemeral, but in Java implementation, its lifespan is managed by GC. It must guarantee that the cluster object is be freed when the session is released.
Proposed Solution
The Java and objective-c binding should implement OnSessionReleased callback, null-out the cluster, and deny all future operations to the cluster.
The text was updated successfully, but these errors were encountered:
The Darwin part of this was fixed in #21504: we no longer hold on to CHIPCluster objects anywhere on the heap; we just stack-allocate them. So this is a pure Android issue now.
bzbarsky-apple
changed the title
For java and objective-c binding, ensure the cluster object is be freed when the session is released
For java binding, ensure the cluster object is be freed when the session is released
Aug 2, 2022
Problem
The cluster object is ephemeral, but in Java implementation, its lifespan is managed by GC. It must guarantee that the cluster object is be freed when the session is released.
Proposed Solution
The Java and objective-c binding should implement
OnSessionReleased
callback, null-out the cluster, and deny all future operations to the cluster.The text was updated successfully, but these errors were encountered: