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

CleanerTest.java fails with "Cleanable was cleaned"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 20
    • 19
    • core-libs
    • b14
    • aarch64
    • linux
    • Verified

      The following test failed in the JDK19 CI:

      java/lang/ref/CleanerTest.java

      Here's a snippet from the log file:

      Case: java.lang.ref.PhantomReference, expect: EV_CLEAR, events: [EV_CLEAR, EV_CLEAN, EV_UNREF], throwEx: false
      [64.770s][info][gc] GC(126) Pause Full (WhiteBox Initiated Full GC) 3M->2M(32M) 84.185ms
       Cleanable cleaned in cycle: 0
      [65.041s][info][gc] GC(127) Pause Young (Concurrent Start) (CodeCache GC Threshold) 3M->2M(272M) 3.007ms
      [65.041s][info][gc] GC(128) Concurrent Mark Cycle
      [65.095s][info][gc] GC(128) Pause Remark 2M->2M(32M) 46.545ms
      [65.100s][info][gc] GC(128) Pause Cleanup 2M->2M(32M) 0.101ms
      [65.101s][info][gc] GC(128) Concurrent Mark Cycle 59.216ms
      test CleanerTest.testRefSubtypes(CleanerTest$$Lambda$101/0x00000008010354b0@178f34f9): failure
      java.lang.AssertionError: Cleanable was cleaned: expected [false] but found [true]
      at org.testng.Assert.fail(Assert.java:99)
      at org.testng.Assert.failNotEquals(Assert.java:1037)
      at org.testng.Assert.assertEqualsImpl(Assert.java:140)
      at org.testng.Assert.assertEquals(Assert.java:122)
      at org.testng.Assert.assertEquals(Assert.java:819)
      at CleanerTest.checkCleaned(CleanerTest.java:299)
      at CleanerTest.verify(CleanerTest.java:223)
      at CleanerTest.generateCases(CleanerTest.java:189)
      at CleanerTest.generateCases(CleanerTest.java:195)
      at CleanerTest.generateCases(CleanerTest.java:195)
      at CleanerTest.generateCasesInternal(CleanerTest.java:159)
      at CleanerTest.testRefSubtypes(CleanerTest.java:136)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:578)
      at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
      at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:599)
      at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174)
      at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
      at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822)
      at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
      at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
      at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
      at org.testng.TestRunner.privateRun(TestRunner.java:764)
      at org.testng.TestRunner.run(TestRunner.java:585)
      at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
      at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)
      at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)
      at org.testng.SuiteRunner.run(SuiteRunner.java:286)
      at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
      at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
      at org.testng.TestNG.runSuitesSequentially(TestNG.java:1218)
      at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
      at org.testng.TestNG.runSuites(TestNG.java:1069)
      at org.testng.TestNG.run(TestNG.java:1037)
      at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:94)
      at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:54)
      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.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:1589)

            rriggs Roger Riggs
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: