Uploaded image for project: 'Couchbase Lite'
  1. Couchbase Lite
  2. CBL-1948

Make objects with native companions AutoClosable

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.6.0
    • 3.0
    • Java, Java-Android
    • 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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          blake.meike Blake Meike added a comment -

          Done in couchbase-lite-java-common @71e8f88e430a287114544c22472b081f5ef8b5f2 and @d196e146fcc72b1b25e5537e7e2ea30d8679cf9a

          blake.meike Blake Meike added a comment - Done in couchbase-lite-java-common @71e8f88e430a287114544c22472b081f5ef8b5f2 and @d196e146fcc72b1b25e5537e7e2ea30d8679cf9a

          People

            blake.meike Blake Meike
            blake.meike Blake Meike
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty