JDK-8289046 : Undefined Behaviour in x86 class Assembler
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 8,11,17,18,19,20
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: x86
  • Submitted: 2022-06-23
  • Updated: 2022-08-04
  • Resolved: 2022-08-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 20
20 b09Fixed
Related Reports
Blocks :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Description
All instances of type Register exhibit UB in the form of wild pointer (including null pointer) dereferences. This isn't very hard to fix: we should make Registers pointers to something rather than aliases of small integers.

JDK-8276563 fixed this for Aarch64 while this bug should fix it for x86.
Comments
Changeset: 86ef7b20 Author: Andrew Haley <aph@openjdk.org> Date: 2022-08-01 08:57:49 +0000 URL: https://git.openjdk.org/jdk/commit/86ef7b20eb45899a91cf9ee83f723336c9477694
01-08-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/9261 Date: 2022-06-23 14:52:54 +0000
23-06-2022

ILW = Same as JDK-8276563 = P4
23-06-2022