RFR: 8139457: Array bases are aligned at HeapWord granularity [v61]
Paul Sandoz
psandoz at openjdk.org
Tue Oct 24 17:54:08 UTC 2023
On Tue, 24 Oct 2023 17:45:12 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:
> > Jorn, you proposal to uniformly reject for `unitSize > 1` for methods `alignedSlice` and `alignmentOffset` gives no workaround for the user whose code is now broken. It's hard to assess the impact. In these known unknown cases i often err on the side of caution. One approach we could take is to uniformly reject only when Lilliput is enabled.
>
> Ok, I think I see where you're coming from now. If we change the array element alignment, we currently only break the users code in a subset of use cases: only when Lilliput or `-XX:-UseCompressedClassPointers` is used. So, let's not break the other users, but let's warn them of the dangers through the deprecation.
>
Yes. We could appeal Joe (Mr. CSR) on whether it is an appropriate use of deprecation or not, his review of the CSR will be valuable.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/11044#issuecomment-1777736045
More information about the hotspot-dev
mailing list