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

CheckCleanerBound test fails with PasswordCallback object is not released

XMLWordPrintable

        The javax/security/auth/callback/PasswordCallback/CheckCleanerBound.java test case failed on one of the test setups with the following exception:

        ----------System.err:(10/548)----------
        java.lang.RuntimeException: PasswordCallback object is not released
        at CheckCleanerBound.main(CheckCleanerBound.java:56)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        at java.base/java.lang.reflect.Method.invoke(Method.java:578)
        at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
        at java.base/java.lang.Thread.run(Thread.java:828)

        This is a new test that was introduced recently as part of https://github.com/openjdk/jdk/pull/8272/

        The test runs gc in a loop and expects the GC to have garbage collected contents of a WeakHashMap. The loop runs for 10 iterations. Perhaps some delay needs to be added between each iteration to increase the chances of GC garbage collecting the instances?

              xuelei Xuelei Fan
              jpai Jaikiran Pai
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: