[lworld] RFR: 8277570: [lworld] Pre-allocated instance should be created during class initialization
Alex Menkov
amenkov at openjdk.java.net
Tue Nov 23 04:47:23 UTC 2021
On Mon, 22 Nov 2021 16:50:29 GMT, Frederic Parain <fparain at openjdk.org> wrote:
> Please review those changes moving the creation of the pre-allocated default instance from the loading phase to the class initialization phase. The changes also include fixes in C1 to ensure the class is initialized before optimizing empty classes.
>
> Thank you,
>
> Fred
What about loading classes from CDS archive?
SystemDictionary::load_shared_class also contains code to allocate default value.
I suppose classes from CDS need initialization anyway.
-------------
PR: https://git.openjdk.java.net/valhalla/pull/585
More information about the valhalla-dev
mailing list