Skip to content

Conversation

Entea
Copy link
Contributor

@Entea Entea commented Sep 25, 2025

Fixes gh-35542

I've noticed ~1.2TB of memory allocations of java.lang.Boolean in 10 minute long JMC dump.
This seemed a lot to me so I have fixed it. After the patch, the bytecode of generated cglib proxies now display a more memory saving valueOf() calls to box primitives (especially the Boolean)

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Sep 25, 2025
* Fixes spring-projectsgh-35542

Signed-off-by: Nurlan Turdaliev <nurlan0000@gmail.com>
@sbrannen sbrannen added the in: core Issues in core modules (aop, beans, core, context, expression) label Sep 25, 2025
@jhoeller jhoeller self-assigned this Oct 2, 2025
@jhoeller jhoeller added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Oct 2, 2025
@jhoeller jhoeller added this to the 6.2.12 milestone Oct 2, 2025
@jhoeller jhoeller merged commit b4d501f into spring-projects:main Oct 2, 2025
4 checks passed
jhoeller added a commit that referenced this pull request Oct 2, 2025
Reformatted with Spring patch markers and backported to 6.2.12

Closes gh-35543
Copy link
Contributor

github-actions bot commented Oct 2, 2025

Fixed via 2da8213

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove redundant object allocation in cglib proxy method calls
4 participants