RFR: 8242188: [TESTBUG] error in jtreg test jdk/jfr/api/consumer/TestRecordedFrame.java on linux-aarch64

Nick Gasson nick.gasson at arm.com
Wed Apr 29 08:11:10 UTC 2020


Hi,

A small fix for a jtreg test failure on AArch64:

Bug: https://bugs.openjdk.java.net/browse/JDK-8242188
Webrev: http://cr.openjdk.java.net/~ngasson/8242188/webrev.0/

This test is run with -Xcomp and checks the main() method in the stack
trace is not interpreted. This fails on AArch64 because this port does
not support patching the instructions of a method after it is compiled,
so -Xcomp is very sensitive to the order classes are loaded in. In this
case the call to System.out.println() causes main() to be deoptimized
almost immediately and run in the interpreter.

Fix by calling an empty method instead, which has the same effect of
non-zero BCI for the test() call.


Thanks,
Nick


More information about the hotspot-jfr-dev mailing list