RFR: 8325949: Create an internal utility method for creating VarHandle instances

Per Minborg pminborg at openjdk.org
Fri Sep 13 07:42:05 UTC 2024


On Thu, 12 Sep 2024 19:29:47 GMT, Chen Liang <liach at openjdk.org> wrote:

> I think we can elide the `Lookup` argument to perform a always-full-permission lookup operation to simplify call sequence; or, to elide the `recv` receiver argument as it is almost always `lookup.lookupClass()` (except for a few lazy holders)

If we could access `MethodHandles.Lookup.IMPL_LOOKUP `, we could use this as a lookup and elide the lookup arg. Any ideas to do this in a "polite" way?

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

PR Comment: https://git.openjdk.org/jdk/pull/20972#issuecomment-2348250197


More information about the core-libs-dev mailing list