Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Remove redundant object allocation in cglib proxy method calls #35543

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
jhoeller merged 1 commit into spring-projects:main from Entea:main
Oct 2, 2025

Conversation

Copy link
Contributor

@Entea Entea commented Sep 25, 2025
edited
Loading

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)

isabek and rumter reacted with thumbs up emoji sdeleuze reacted with heart emoji
* 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

Entea reacted with hooray emoji

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

Successfully merging this pull request may close these issues.

Remove redundant object allocation in cglib proxy method calls

AltStyle によって変換されたページ (->オリジナル) /