JDK-8030194 : java/lang/management/MemoryMXBean/CollectionUsageThreshold.java fails when being run with different GCs
  • Type: Bug
  • Component: core-svc
  • Sub-Component: java.lang.management
  • Affected Version: 8
  • Priority: P4
  • Status: Resolved
  • Resolution: Duplicate
  • Submitted: 2013-12-16
  • Updated: 2013-12-18
  • Resolved: 2013-12-18
Related Reports
Duplicate :  
Description
The test java/lang/management/MemoryMXBean/CollectionUsageThreshold.java fails when being run in nightly testing with various GC combinations:

Conflicting collector combinations in option list; please refer to the release notes for the combinations allowed

The problem is that the lists specific GC options in the "@run" tags. When Aurora runs baselines with different GC combinations, for example CMS, it will append the GC combination the "@run" tag. The result will be a run tag like the following:

 @run main/othervm/timeout=300 -XX:+PrintGCDetails -XX:+UseSerialGC -XX:+UseG1GC CollectionUsageThreshold

The test must either use ProcessTools to spawn new Java processes without passing along the options or check which GC it is being run with.
Comments
JDK-8030628
18-12-2013