Skip to content

Remove redundant object allocation in cglib proxy method calls #35542

@Entea

Description

@Entea

Hello!

I've noticed a huge amount of memory allocations of java.lang.Boolean being made in calls to CGLIB proxies with a primitive boolean in the method signature. Tracing down the issue, I found that the method invocation code uses the new Boolean(boolean) constructor (which has been deprecated for removal since Java 9, by the way) to box the boolean, instead of the more efficient Boolean.valueOf().

It would be nice to fix this small issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: coreIssues in core modules (aop, beans, core, context, expression)status: supersededAn issue that has been superseded by another

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions