JDK-8358334 : C2/Shenandoah: incorrect execution with Unsafe
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 17,21,25
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2025-06-02
  • Updated: 2025-07-23
  • Resolved: 2025-06-12
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 21 JDK 25 JDK 26
21.0.9Fixed 25Fixed 26 b03Fixed
Related Reports
Duplicate :  
Relates :  
Description
See: https://mail.openjdk.org/pipermail/shenandoah-dev/2025-May/026432.html
Comments
Fix Request (17u): bug causes incorrect execution with Shenandoah and was reported by a user. Fix is in c2 code specific to Shenandoah. No risk if not running with Shenandoah. When running with Shenandoah risk is the usual for c2 fixes. Tested with hotspot_gc_shenandoah and tier1 with -XX:+UseShenandoahGC. Patch doesn't apply cleanly and was reviewed: https://github.com/openjdk/jdk17u-dev/pull/3770
21-07-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk17u-dev/pull/3770 Date: 2025-07-18 15:38:51 +0000
18-07-2025

Fix Request (21u): bug causes incorrect execution with Shenandoah and was reported by a user. Fix is in c2 code specific to Shenandoah. No risk if not running with Shenandoah. When running with Shenandoah risk is the usual for c2 fixes. Tested with hotspot_gc_shenandoah and tier1 with -XX:+UseShenandoahGC. Patch doesn't apply cleanly and was reviewed: https://github.com/openjdk/jdk21u-dev/pull/1901
08-07-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk21u-dev/pull/1901 Date: 2025-06-18 13:48:14 +0000
18-06-2025

A pull request was submitted for review. Branch: jdk25 URL: https://git.openjdk.org/jdk/pull/25845 Date: 2025-06-17 07:46:38 +0000
17-06-2025

Changeset: 1fcede05 Branch: master Author: Roland Westrelin <roland@openjdk.org> Date: 2025-06-12 15:02:38 +0000 URL: https://git.openjdk.org/jdk/commit/1fcede053cca360c96606c1034b2a365a4fada82
12-06-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/25729 Date: 2025-06-10 14:13:21 +0000
10-06-2025

Duplicate of JDK-8358513?
03-06-2025