RFR: 8334220: Optimize Klass layout after JDK-8180450 [v2]
Xiaolong Peng
xpeng at openjdk.org
Tue Jul 2 20:07:19 UTC 2024
On Tue, 2 Jul 2024 17:55:03 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:
> Ok.
>
> > I have checked the cacheline boundaries with pahole, both are in same cache line after moving, that shouldn't be a concern.
>
> Note that in current class space, Klass does usually not start at a cache line boundary.
Thank you Thomas for the review and reminding! The whole point is to compact the layout of Klass, which is instantiated often at runtime, more compact will benefit the footprint of cachelines, although the improvement won't be significant.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/19958#issuecomment-2204288859
More information about the hotspot-dev
mailing list