Explore how to reduce reachability of CGLIB classes at runtime in AOT mode #29547
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
theme: aot
An issue related to Ahead-of-time processing
Milestone
Spring Framework 6 added support for AOT generation of CGLIB proxies via #28115. We were able to remove a bunch of reachable classes from the reachable code path via #29521, but some CGLIB classes are still reachable via
CglibSubclassingInstantiationStrategy
,CglibAopProxy
, andObjenesisCglibAopProxy
:The purpose of this issue is to explore how to reduce as much as possible those reachable types (first goal is to reduce the memory footprint on native) when running in AOT mode. Would a dedicated
InstantiationStrategy
make sense at runtime in AOT mode for example?Note that this might not be straightforward due to the need to initialize and configure the proxy classes, which in turn involves CGLIB-specific types, but it's likely worth a try.
The text was updated successfully, but these errors were encountered: