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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 6
    • core-libs
    • None
    • Fix Understood
    • 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

            mr Mark Reinhold
            martin Martin Buchholz
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: