[aarch64-port-dev ] RFR(XS): 8211320: Aarch64: unsafe.compareAndSetByte() and unsafe.compareAndSetShort() c2 intrinsics broken with negative expected value
Andrew Haley
aph at redhat.com
Thu Oct 11 10:37:19 UTC 2018
On 10/11/2018 09:05 AM, Roland Westrelin wrote:
>
>> I'm getting many test failures in my debug build because of nag messages
>> for things like CMS deprecation and
>>
>> TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: stderr was not empty
>>
>> There must be some way to make jtreg ignore the noise, surely. I don't know
>> how you managed to run the tests.
>
> Are you trying to run this bug's test (which has nothing to do with
> CMS)? Or are you talking about 8209835 "Aarch64: elide barriers on all
> volatile operations" (which runs some subtest with CMS)?
>
> Anyway, I updated to current jdk/jdk, rebased, rebuilt and I can run the
> tests of both bugs fine with:
>
> jtreg -ignore:quiet -conc:8 -dir:<path to jdk>/test/hotspot/jtreg -compilejdk:<path to jdk>/build/linux-aarch64-normal-server-fastdebug/images/jdk -testjdk:<path to jdk>/build/linux-aarch64-normal-server-fastdebug/images/jdk -va -javaoptions:'-server' compiler/c2/aarch64/
>
> and
>
> jtreg -ignore:quiet -conc:8 -dir:<path to jdk>/test/hotspot/jtreg -compilejdk:<path to jdk>/build/linux-aarch64-normal-server-fastdebug/images/jdk -testjdk:<path to jdk>/build/linux-aarch64-normal-server-fastdebug/images/jdk -va -javaoptions:'-server' compiler/unsafe/CASandCAEwithNegExpected.java
Exactly the same:
$ jtreg -ignore:quiet -conc:8 -dir:$JDK/test/hotspot/jtreg \
-compilejdk:$JDK/build/linux-aarch64-server-fastdebug/images/jdk \
-testjdk:$JDK/build/linux-aarch64-server-fastdebug/images/jdk -va \
-javaoptions:'-server' compiler/c2/aarch64/
...
--add-modules java.base \
--add-exports java.base/jdk.internal.misc=ALL-UNNAMED \
-server \
com.sun.javatest.regtest.agent.MainWrapper /local/x/JTwork/compiler/c2/aarch64/TestVolatilesG1.d/driver.6.jta TestUnsafeVolatileCAS G1
TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: stderr was not empty
I don't understand what is going on. Can you try with
jtreg-4.2-b13.tar.gz from
https://ci.adoptopenjdk.net/view/Dependencies/job/jtreg/ ?
--
Andrew Haley
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671
More information about the hotspot-compiler-dev
mailing list