Skip to content

Enable parallel loading in DecoratingClassLoader and subclasses on JDK 7+ [SPR-12285] #16890

@spring-projects-issues

Description

@spring-projects-issues

Brian Clozel opened SPR-12285 and commented

According to JDK7's documentation, the Classloader class added new methods to add parallel classloading capabilities.
This is automatically done when using directly a Classloader instance, but not the case when using a subclass.

Spring is using several helper subclasses in its codebase (see DecoratingClassLoader) - so conditionally calling registerAsParallelCapable (when JDK7+ is detected) could improve class loading performance.


Affects: 4.1.1

Referenced from: commits 05c995c

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions