Skip to content

Optimize native footprint by avoiding using ModuleFinder.ofSystem() at runtime #29183

Closed
@sdeleuze

Description

@sdeleuze

#28506 introduced JPMS support in PathMatchingResourcePatternResolver by using ModuleFinder.ofSystem(), but it has introduced a significant footprint increase on native (close to 2M RSS) due to the transitive usage of JarVerifier 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.

Metadata

Metadata

Labels

theme: aotAn issue related to Ahead-of-time processingtype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions