JDK-8214242 : compiler/arguments/TestScavengeRootsInCode.java fails because of missing UnlockDiagnosticVMOptions
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 11,12
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: generic
  • Submitted: 2018-11-23
  • Updated: 2021-10-16
  • Resolved: 2018-11-26
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 11 JDK 12
11.0.10Fixed 12 b22Fixed
Related Reports
Relates :  
Description
openjdk version "12-ea" 2019-03-19
OpenJDK Runtime Environment (build 12-ea+21)
OpenJDK 64-Bit Server VM (build 12-ea+21, mixed mode, sharing)

javatestOS=Linux 3.8.13-118.24.2.el7uek.x86_64 (amd64)

Error log: 
----------System.err:(4/278)----------
Error: VM option 'ScavengeRootsInCode' is diagnostic and must be enabled via -XX:+UnlockDiagnosticVMOptions.
Error: The unlock option must precede 'ScavengeRootsInCode'.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.


Comments
Fix Request (11u) This is a follow-up after JDK-8214025 backport. Patch applies cleanly, test fails in release mode without the patch, and passes with it.
23-11-2020

URL: http://hg.openjdk.java.net/jdk/jdk/rev/ca9459361300 User: thartmann Date: 2018-11-26 11:16:51 +0000
26-11-2018

http://cr.openjdk.java.net/~thartmann/8214242/webrev.00/
26-11-2018

ILW = Test fails because of missing UnlockDiagnosticVMOptions option (test bug), single test with product builds, no workaround = MMH = P3
26-11-2018