On Fri, 18 Oct 2024 05:39:32 GMT, Chen Liang <li...@openjdk.org> wrote:
>> `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? Perhaps. In the Leyden repo we are doing some optimizations for reflection. See the `ArchiveReflectionData` flag in the Leyden premain repo.. I am not sure if `reflectionFactory` itself needs to be cached. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/21143#discussion_r1809702708