RFR: 8287044: Loom: Incorrect StackChunk::pc accessors

Coleen Phillimore coleenp at openjdk.java.net
Mon May 23 01:37:47 UTC 2022


On Thu, 19 May 2022 17:53:12 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> 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. 
> 
> Additional testing:
>  - [x] Linux x86_64 fastdebug, prospective `jdk_loom hotspot_loom`
>  - [x] Linux AArch64 fastdebug, prospective `jdk_loom hotspot_loom`
>  - [x] Linux x86_32 fastdebug experimental port is not broken here anymore

Marked as reviewed by coleenp (Reviewer).

-------------

PR: https://git.openjdk.java.net/jdk/pull/8792


More information about the hotspot-dev mailing list