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

sun.security.pkcs11.wrapper.PKCS11 cleaner is never used

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 8, 17
    • security-libs
    • None

      Instances of the class sun.security.pkcs11.wrapper.PKCS11 register a cleaner in the class constructor. The cleaner is never used:
      - PKCS11.moduleMap holds a strong reference to the PKCS11 object
      - the native PKCS11_connect method creates and leaks a global reference to the PKCS11 object
      as a result, the object is never collected, and the cleaner is never run. The issue was also present in earlier JDK versions that used the finalizers.

            valeriep Valerie Peng
            djelinski Daniel Jelinski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: