[master] RFR: Load narrowKlass from runtime, decode in generated code

Aleksey Shipilev shade at openjdk.java.net
Thu Jan 27 11:02:59 UTC 2022


On Thu, 27 Jan 2022 10:55:49 GMT, Roman Kennke <rkennke at openjdk.org> wrote:

> > Really? Why? I thought the universal contract for compressed oops/klasses is "decode on access, never actually deal with compressed forms"?
> 
> AFAIU, a lot of load-klass happens in order to check type, and a common fast-path for this is to compare one type for equality with another (before doing subtype checks, also for primitive types). It is not necessary to decode the nklass for equality check.

I see, alright then.

-------------

PR: https://git.openjdk.java.net/lilliput/pull/35


More information about the lilliput-dev mailing list