JDK-8292407 : Improve Weak CAS VarHandle/Unsafe tests resilience under spurious failures
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang.invoke
  • Affected Version: 11,17,19,20
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-08-16
  • Updated: 2024-01-14
  • Resolved: 2022-09-01
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 11 JDK 17 JDK 20
11.0.22Fixed 17.0.10-oracleFixed 20 b14Fixed
Related Reports
Duplicate :  
Relates :  
Description
We have a few reports that existing Weak* VarHandle tests are still flaky, for example on large AArch64 machines or small RISC-V machines.

The flakiness is intrinsic to the nature of Weak* operations under tests, that can spuriously fail. The last attempt to fix these was JDK-8155739. We need to strengthen these a bit more.
Comments
Fix Request (11u) Backport this test-only change in order to help "weak" and slow platforms to have stable results. Doing in advance of upcoming RISC-V port in https://github.com/openjdk/riscv-port-jdk11u where this helps to get stable test results. Backport PR has been reviewed & approved by Aleksey Shipilev. This is a test-only change. Risk is low.
01-09-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk11u-dev/pull/2099 Date: 2023-08-26 02:52:38 +0000
26-08-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-dev/pull/1200 Date: 2023-03-10 11:06:00 +0000
10-03-2023

Fix Request (17u): Clean backport, helps "weak" and slow platforms to have stable results. Doing in advance of risc-v port where this helps to get stable test results. Test-only change. Risk is low. Testing - GHA tests passed (updated tests are part of tier1),
10-03-2023

Changeset: 6e6202c1 Author: Aleksey Shipilev <shade@openjdk.org> Date: 2022-09-01 09:22:56 +0000 URL: https://git.openjdk.org/jdk/commit/6e6202c14d0f6dd26369f21883ff317057aa469f
01-09-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/9889 Date: 2022-08-16 08:23:11 +0000
16-08-2022