JDK-8141706 : [TESTBUG] Update tests failing due to changed behavior
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 9
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2015-11-09
  • Updated: 2017-08-17
  • Resolved: 2015-11-24
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b96Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
Fix of JDK-8129855: -XX:+IgnoreUnrecognizedVMOptions hides out of range VM options
Changed the behavior of option handling. Now, IgnoreUnrecognizedVMOptions doesn't ignore Locked options. 

As the result all the tests which rely on the previous behavior started failing like:

Error: VM option 'GuaranteedSafepointInterval' is diagnostic and must be enabled via -XX:+UnlockDiagnosticVMOptions.
Error: The unlock option must precede 'GuaranteedSafepointInterval'.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

All such tests need to be fixed. Ideally, they must have been fixed along with the JDK-8129855...

List of tests to update:
compiler/c2/8004741/Test8004741.java
compiler/loopopts/TestCastIINoLoopLimitCheck.java
compiler/runtime/7196199/Test7196199.java
gc/g1/TestEagerReclaimHumongousRegionsClearMarkBits.java
gc/g1/TestLargePageUseForAuxMemory.java

Comments
serviceability/dcmd/compiler/CompilerDirectivesDCMDTest.java seems unrelated to my change. I have fixes for: test/compiler/c2/8004741/Test8004741.java test/compiler/loopopts/TestCastIINoLoopLimitCheck.java test/compiler/runtime/7196199/Test7196199.java
19-11-2015

Pavel Punegov fixed: compiler/compilercontrol/TestCompilerDirectivesCompatibilityCommandOff.java compiler/compilercontrol/TestCompilerDirectivesCompatibilityCommandOn.java compiler/compilercontrol/TestCompilerDirectivesCompatibilityFlag.java in JDK-8141129
19-11-2015

Kim has been working on: gc/g1/TestEagerReclaimHumongousRegionsClearMarkBits.java gc/g1/TestLargePageUseForAuxMemory.java in JDK-8141654
09-11-2015