Re: RFR: 8271627: Use local field access in favor of Class.getClassLoader0

2021-08-02 Thread Claes Redestad
On Mon, 2 Aug 2021 19:44:22 GMT, Mandy Chung 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

Re: RFR: 8271627: Use local field access in favor of Class.getClassLoader0

2021-08-02 Thread Mandy Chung
On Mon, 2 Aug 2021 18:27:00 GMT, Claes Redestad wrote: > Trivial startup hack/cleanup to use the `classLoader` field directly rather > than the `getClassLoader0` accessor. > > Before aa12c8fbf5b020d168cf29412643bf15514b0439 there was no `classLoader` > field and `getClassLoader0` was a

RFR: 8271627: Use local field access in favor of Class.getClassLoader0

2021-08-02 Thread Claes Redestad
Trivial startup hack/cleanup to use the `classLoader` field directly rather than the `getClassLoader0` accessor. Before aa12c8fbf5b020d168cf29412643bf15514b0439 there was no `classLoader` field and `getClassLoader0` was a native method that retrieved the `ClassLoader` by calling into the