Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8055275

Several gc/class_unloading/ tests fail due to missed +UnlockDiagnosticVMOptions flag

XMLWordPrintable

    • gc
    • b29
    • generic
    • generic

        Following tests use WB API and pass diagnostic option +WhiteBoxAPI that should be unlocked with +UnlockDiagnosticVMOptions, but this option is missing:

        gc/class_unloading/TestCMSClassUnloadingEnabledHWM.java
        gc/class_unloading/TestG1ClassUnloadingHWM.java

        ----------System.out:(1/278)----------
        Command line: [/export/local/aurora/CommonData/jdk/bin/java -Xbootclasspath/a:. -XX:+WhiteBoxAPI -XX:MetaspaceSize=33554432 -Xmn33554432 -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:+PrintHeapAtGC -XX:+PrintGCDetails AllocateBeyondMetaspaceSize 33554432 33554432 ]
        ----------System.err:(24/1282)----------
         stdout: [];
         stderr: [Error: VM option 'WhiteBoxAPI' is diagnostic and must be enabled via -XX:+UnlockDiagnosticVMOptions.
        Error: Could not create the Java Virtual Machine.
        Error: A fatal exception has occurred. Program will exit.
        ]

              stefank Stefan Karlsson
              fzhinkin Filipp Zhinkin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: