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

jfr/event/allocation tests fail with release VMs after JDK-8281318 due to lack of -XX:+UnlockDiagnosticVMOptions

XMLWordPrintable

    • jfr
    • b10

        The following three tests fail with release VMs.

        jdk/jfr/event/allocation/TestObjectAllocationInNewTLABEvent.java
        jdk/jfr/event/allocation/TestObjectAllocationOutsideTLABEvent.java
        jdk/jfr/event/allocation/TestObjectAllocationSampleEventThrottling.java

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

              jiefu Jie Fu
              jiefu Jie Fu
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: