Integrated: 8281638: jfr/event/allocation tests fail with release VMs after JDK-8281318 due to lack of -XX:+UnlockDiagnosticVMOptions
Aleksey Shipilev
shade at openjdk.java.net
Fri Feb 11 11:44:25 UTC 2022
On Fri, 11 Feb 2022 11:29:21 GMT, Jie Fu <jiefu at openjdk.org> wrote:
> Hi all,
>
> 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
>
>
> The failing reason is
>
> STDERR:
> Error: VM option 'WhiteBoxAPI' is diagnostic and must be enabled via -XX:+UnlockDiagnosticVMOptions.
> Error: The unlock option must precede 'WhiteBoxAPI'.
>
>
> Fix:
> 1) Add -XX:+UnlockDiagnosticVMOptions
> 2) Update the copyright year
>
> Testing:
> - Affected tests on Linux/x64 with {release, fastdebug}
>
> Thanks.
> Best regards,
> Jie
Ah, dang, sorry! I thought I ran these with `release` bits, but apparently not.
Looks good and trivial.
-------------
Marked as reviewed by shade (Reviewer).
PR: https://git.openjdk.java.net/jdk/pull/7441
More information about the hotspot-jfr-dev
mailing list