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

gc/gctests/OneeFinalizerTest test fails because objects not finalized

    Details

    • Subcomponent:
      gc

      Description

      Test gc/gctests/OneeFinalizerTest checks that objects will be finalized exactly once. It started to fail because some of objects don't become finalized at all. Test triggers finalization with following code:

              System.gc();
              System.runFinalization();
              System.gc();
              System.runFinalization();
              System.gc();

      Javadoc to runFinalization doesn't guarantee that all objects will be finalized after method return, so we need a reliable whitebox version of runFinalization method.

      Btw insertion of one second delays makes test pass, but it would be only temporary solution.

      Therefore this issue is blocked by JDK-8029480 RFE.

      RULE gc/gctests/OneeFinalizerTest Exception nsk.share.TestFailure: Failed

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mlarsson Marcus Larsson (Inactive)
                Reporter:
                stefank Stefan Karlsson
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: