RFR 8030628: MemoryMXBean/CollectionUsageThreshold.java is not	applicable for VM SQE testing
    Mattias Tobiasson 
    mattias.tobiasson at oracle.com
       
    Tue Mar 11 13:15:38 UTC 2014
    
    
  
Hi,
Could you please review this test fix.
The test fails because it specifies its own GC command line options, for example:
@run main/othervm/timeout=300 -XX:+PrintGCDetails -XX:+UseSerialGC CollectionUsageThreshold
When the framework also specifies GC version, then the test will fail with this log:
"Conflicting collector combinations in option list; Error: Could not create the Java Virtual Machine."
The solution is to run the test in a separate JVM with controlled GC options.
The test will be run multiple times.
First with the command line specified from the framework, without test specific GC options.
Then once for each GC version specified in the test. When the test specifies the GC, any GC options from the framework are removed.
webrev: http://cr.openjdk.java.net/~ykantser/8030628/webrev.01
bug: https://bugs.openjdk.java.net/browse/JDK-8030628
Mattias
    
    
More information about the serviceability-dev
mailing list