Skip to content

Memory leak in ConcurrentReferenceHashMap [SPR-11440] #16066

Closed
@spring-projects-issues

Description

@spring-projects-issues

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

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchestype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions