-
Bug
-
Resolution: Fixed
-
P3
-
8, 8u40
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8045670 | 8u25 | Mattias Tobiasson | P3 | Resolved | Fixed | b01 |
JDK-8038920 | 8u20 | Mattias Tobiasson | P3 | Resolved | Fixed | b17 |
JDK-8053615 | emb-8u26 | Mattias Tobiasson | P3 | Resolved | Fixed | b17 |
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]
/*
* @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]
- backported by
-
JDK-8038920 Update java/lang/management/MemoryMXBean tests to ignore GC setting by jtreg
- Resolved
-
JDK-8045670 Update java/lang/management/MemoryMXBean tests to ignore GC setting by jtreg
- Resolved
-
JDK-8053615 Update java/lang/management/MemoryMXBean tests to ignore GC setting by jtreg
- Resolved
- duplicates
-
JDK-8030194 java/lang/management/MemoryMXBean/CollectionUsageThreshold.java fails when being run with different GCs
- Closed
- relates to
-
JDK-7067973 test/java/lang/management/MemoryMXBean/CollectionUsageThreshold.java hanging intermittently
- Resolved