Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.6.0
-
Security Level: Public
-
None
-
5
Description
CBL Java platform objects that have native companion objects all depend on finalization, to free the native companion. This can lead to flooding of the finalizer thread and slow recovery of memory.
Objects with native compainions should be auto-closable, so that they can be used with Java's try-with-resources statement.
Done in couchbase-lite-java-common @71e8f88e430a287114544c22472b081f5ef8b5f2 and @d196e146fcc72b1b25e5537e7e2ea30d8679cf9a