JDK-8235636 : gc/shenandoah/compiler/TestUnsafeOffheapSwap.java fails after JDK-8226411
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 8-shenandoah,11-shenandoah,14
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-12-10
  • Updated: 2020-02-25
  • Resolved: 2019-12-11
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 14 JDK 15
14 b27Fixed 15Fixed
Related Reports
Relates :  
Description
* Symptom
```
STDERR:
java.lang.IllegalStateException: Values mismatch after swaps
        at TestUnsafeOffheapSwap.test(TestUnsafeOffheapSwap.java:83)
        at TestUnsafeOffheapSwap.main(TestUnsafeOffheapSwap.java:56)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:564)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
        at java.base/java.lang.Thread.run(Thread.java:832)

JavaTest Message: Test threw exception: java.lang.IllegalStateException: Values mismatch after swaps
JavaTest Message: shutting down test
```
Comments
This was triggered by the specific test after JDK-8226411, but the issue is generic. Adding affected-versions.
25-02-2020

URL: https://hg.openjdk.java.net/jdk/jdk/rev/bb39b624948d User: roland Date: 2019-12-11 16:12:12 +0000
11-12-2019

Re-assigning to Red Hat since this is a Shenandoah specific problem as described in above email thread.
10-12-2019

Isn't this the issue that has been discussed here? https://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/2019-November/036227.html https://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/2019-November/036228.html
10-12-2019

Re-assign this issue to Vladimir Ivanov since it's P2 which needs to be fixed ASAP. Thanks.
10-12-2019