RFR: 8139457: Array bases are aligned at HeapWord granularity [v61]
Jorn Vernee
jvernee at openjdk.org
Tue Oct 24 17:47:55 UTC 2023
On Tue, 24 Oct 2023 17:37:28 GMT, Paul Sandoz <psandoz 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.
I think that is a fair way of going about this.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/11044#issuecomment-1777726878
More information about the hotspot-dev
mailing list