RFR: 8293336: AOT-linking of invokedynamic for lambda expression and string concat [v5]
Chen Liang
liach at openjdk.org
Fri Oct 18 05:42:50 UTC 2024
On Fri, 18 Oct 2024 04:09:00 GMT, Ioi Lam <iklam at openjdk.org> wrote:
>> src/hotspot/share/cds/metaspaceShared.cpp line 873:
>>
>>> 871: Symbol* method_sig = vmSymbols::void_method_signature();
>>> 872: JavaCalls::call_static(&result, vmClasses::Class_klass(),
>>> 873: method_name, method_sig, CHECK);
>>
>> Is this a good candidate for a `runtimeResolve` helper method? Can we roll it into the same mechanism as the other `runtimeResolve` classes use?
>
> `Class::reflectionFactory` is a large table that must be cleared, or else we will bring unwanted (unsupported) objects into the cache.
>
> During runtime, `reflectionFactory` will be initialized on demand, so there's no need to explicitly create it with `runtimeSetup`.
That said, can reflectionFactory field be stable in the future with this?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/21143#discussion_r1805889297
More information about the hotspot-dev
mailing list