JDK-8287044 : Loom: Incorrect StackChunk::pc accessors
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 19
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-05-19
  • Updated: 2022-05-23
  • Resolved: 2022-05-23
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 19
19 masterFixed
Related Reports
Relates :  
Description
The injected field is defined as:

```
  macro(jdk_internal_vm_StackChunk, pc,             intptr_signature, false)        \
```

...yet it is read and written as "long", which silently overwrites adjacent fields in StackChunk on 32-bit platforms. This is a blocker for any 32-bit support. There are plenty of other `intptr` injected fields in other classes (e.g. `Class::array_klass`), and they are properly accessed by "address" accessors.
Comments
Changeset: 9008cfad Author: Aleksey Shipilev <shade@openjdk.org> Date: 2022-05-23 05:40:34 +0000 URL: https://git.openjdk.java.net/jdk/commit/9008cfad45346af570a765335846b0b4fe9af4b6
23-05-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/8792 Date: 2022-05-19 17:53:12 +0000
19-05-2022