RFR: 8139457: Array bases are aligned at HeapWord granularity
Roman Kennke
rkennke at openjdk.org
Mon Nov 21 11:07:25 UTC 2022
On Thu, 17 Nov 2022 12:56:04 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:
> > I did the zero-ing out up in `allocate_array` since I did not want to affect the object allocation path.
>
> About that, I see that other platforms zero out the leading bytes in `initialize_body`, but does that not mean that we now do a pointless store whenever we initialize a variable-sized object in +UseCCP mode with 12byte headers?
I don't think so. initialize_object() always passes an aligned offset to initialize_body() because that gap at offset 12 is handled by initialize_header() already.
-------------
PR: https://git.openjdk.org/jdk/pull/11044
More information about the hotspot-dev
mailing list