Skip to content

Memory leak in ConcurrentReferenceHashMap [SPR-11440] #16066

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

Closed
spring-projects-issues opened this issue Feb 18, 2014 · 0 comments
Closed

Memory leak in ConcurrentReferenceHashMap [SPR-11440] #16066

spring-projects-issues opened this issue Feb 18, 2014 · 0 comments
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) status: backported An issue that has been backported to maintenance branches type: bug A general bug
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Feb 18, 2014

Phil Webb opened SPR-11440 and commented

The restructureIfNecessary method in ConcurrentReferenceHashMap can add new entries Reference objects that have been cleaned.

It appears that relying on ReferenceQueue alone is not enough to ensure that entries get removed. An entry that has been cleaned but somehow doesn't appear as a pollForPurge entry will be continually re-added with a null reference.


Affects: 3.2.7, 4.0.1

Issue Links:

Referenced from: commits 2b4c81e, 09c5720

Backported to: 3.2.8

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) status: backported An issue that has been backported to maintenance branches type: bug A general bug
Projects
None yet
Development

No branches or pull requests

2 participants