Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8284855

Update needed to Cleaners added to jdk.crypto.cryptoki

    XMLWordPrintable

Details

    Description

      The fix for JDK-8284368 replaced the finalizers in jdk.crypto.cryptoki with Cleaners.

      However, there is a problem with the code changes. The Runnables registered with Cleaner refer to the object being registered ('this'). Meaning, the Cleaner mechanism will keep the objects reachable, preventing them from being cleaned and collected.

      The JDK-8284368 change needs to be reworked to not reference 'this'.

      Attachments

        Issue Links

          Activity

            People

              xuelei Xuelei Fan
              bchristi Brent Christian
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: