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

Robustness improvements for regtest ZipFile/Collectible.java

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 6
    • core-libs
    • b49
    • generic
    • generic

      While investigating failures in test/java/util/zip/ZipFile/Collectible.java,
      I discovered some robustness improvements to the test.

      Instead of

      public static int births = 0;
      public static int deaths = 0;

      we should be using Atomics

      For added chance of running finalizers, we should call System.runFinalization twice.

      The garbage-generating code should be moved into a separate method, to help
      guarantee unreachability.

            martin Martin Buchholz
            martin Martin Buchholz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: