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

Update java/lang/management/MemoryMXBean tests to ignore GC setting by jtreg

XMLWordPrintable

        The header of the CollectionUsageThreshold.java tests now looks as:

        /*
         * @test
         * @bug 4959889 6992968
         * @summary Basic unit test of memory management testing:
         * 1) setCollectionUsageThreshold() and getCollectionUsageThreshold()
         * 2) test notification emitted for two different memory pools.
         *
         * @author Mandy Chung
         *
         * @build CollectionUsageThreshold MemoryUtil
         * @run main/othervm/timeout=300 -XX:+PrintGCDetails -XX:+UseSerialGC CollectionUsageThreshold
         * @run main/othervm/timeout=300 -XX:+PrintGCDetails -XX:+UseParallelGC CollectionUsageThreshold
         * @run main/othervm/timeout=300 -XX:+PrintGCDetails -XX:+UseG1GC CollectionUsageThreshold
         * @run main/othervm/timeout=300 -XX:+PrintGCDetails -XX:+UseConcMarkSweepGC CollectionUsageThreshold
         */

        So this test is no longer applicable for VM SQE testing. Because with each run a GC to use is specified.
        As the result this test will always fail with:

        Conflicting collector combinations in option list; please refer to the release notes for the combinations allowed
        Error: Could not create the Java Virtual Machine.
        Error: A fatal exception has occurred. Program will exit.
        result: Failed. Unexpected exit from test [exit code: 1]


              mtobiass Mattias Tobiasson (Inactive)
              dfazunen Dmitry Fazunenko (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: