On Fri, 18 Oct 2024 04:09:00 GMT, Ioi Lam <ik...@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