RFR(10)(S) 8177055: [TESTBUG] test/runtime/ReservedStack/ReservedStackTest.java sometimes fails on Oracle arm64 port after being enabled for open aarch64 port

Chris Plummer chris.plummer at oracle.com
Wed Mar 22 01:15:43 UTC 2017


Please review the following:


The test was recently enabled for aarch64 platforms since support for 
stack reserved pages was added to the open aarch64 port. However, the 
Oracle port still does not have this feature, causing the test to 
sometimes fail when run on it. Note the test is always run on all 
platforms. However, when run on an unsupported platform, "failures" do 
not result in the test actually failing (although crashes will). This is 
intentional and is how the test is suppose to work.

The fix is to change how the test determines if it is running on a 
supported platform. It used to use a fixed list of supported platforms. 
Now I have it spawn a subprocess with "-XX:StackReservedPages=1" to see 
if it produces the warning message you should see on unsupported platforms:

WARNING: Reserved Stack Area not supported on this platform

If it doesn't appear, then the platform is assumed to support the 
feature. I still use the old list of supported platforms (minus aarch64) 
for sanity checks. Basically all platforms in the old list (except 
aarch64) should never show the above warning, and all platforms not in 
the old list (except aarch64) should always show the above warning.



More information about the hotspot-runtime-dev mailing list