RFR: 8271627: Use local field access in favor of Class.getClassLoader0
Claes Redestad
redestad at openjdk.java.net
Mon Aug 2 20:41:30 UTC 2021
On Mon, 2 Aug 2021 19:44:22 GMT, Mandy Chung <mchung at openjdk.org> wrote:
> Do you see any startup improvement by this change?
Very tiny, ~90 calls on bootstrap.
> This looks okay.
Thanks!
> I assume you concern about the early startup when this method is running in interpreted mode. Do you see any startup improvement by this change?
Yes. Many of these things that will be executed only when loading and bootstrapping, so might be interpreted for most of a JVM lifecycle. Right off the bat see a thousand or so less bytecode get executed on a hello world with this patch.
-------------
PR: https://git.openjdk.java.net/jdk/pull/4960
More information about the core-libs-dev
mailing list