(ref) Finalizers never called despite System.gc(); System.runFinalization();

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Not an Issue
    • Priority: P4
    • None
    • Affects Version/s: 6
    • Component/s: core-libs
    • None
    • generic
    • generic

      The regression test test/java/util/zip/ZipFile/Collectible.java
      fails intermittently on different platforms.

      It seems the finalizers for some objects are never called despite
      being unreachable and being actively coaxed with repeated invocations of

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

      The most promising platform for reproducing the failure appears to be
      linux-amd64 (5-10% of the time), but the failure is also seen occasionally on
      solaris-sparc, windows-amd64, solaris-i586.

      The failure has never been observed on a uni-processor.

      This problem can be seen in various JDKs since at least 5.0

            Assignee:
            Mark Reinhold
            Reporter:
            Martin Buchholz
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: