Optimize native footprint by avoiding using ModuleFinder.ofSystem()
at runtime
#29183
Labels
Milestone
ModuleFinder.ofSystem()
at runtime
#29183
#28506 introduced JPMS support in
PathMatchingResourcePatternResolver
by usingModuleFinder.ofSystem()
, but it has introduced a significant footprint increase on native (close to 2M RSS) due to the transitive usage ofJarVerifier
and related crypto classes.This commit skip
ModuleFinder.ofSystem()
usage on native since JPMS usage is pretty niche, so it is probably ok to skip it on native. We may be able to re-introduce JPMS on native support there if we achieve to support this use case via #29081.The text was updated successfully, but these errors were encountered: