RFR: 8298470: Short cut java.lang.Object super class loading
Coleen Phillimore
coleenp at openjdk.org
Mon Dec 19 17:08:50 UTC 2022
On Fri, 16 Dec 2022 13:41:31 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:
> While investigating another bug, I found doing this simple optimization saves taking out a SystemDictionary_lock, adding and removing a placeholder and some Symbol refcounting.
> Tested with tier1-4.
Thanks for the reviews David and Ioi! I think I tried this optimization once and did it wrong, or decided that calling into resolve_super_or_fail was necessary, or didn't want to skip the CDS code in the beginning of resolve_super_or_fail. Just checked with Ioi and it has no side effects so the optimization is good. I don't think it saves a lot of time but it does help with debugging. Thanks!
-------------
PR: https://git.openjdk.org/jdk/pull/11711
More information about the hotspot-runtime-dev
mailing list