Skip to content

Conversation

@kilink
Copy link
Contributor

@kilink kilink commented Nov 14, 2025

Read the respective fields only once in values, entrySet, and keySet methods.

See: https://javaagile.blogspot.com/2013/05/the-racy-single-check-idiom.html

Read the respective fields only once in values, entrySet, and keySet methods.

Signed-off-by: Patrick Strawderman <[email protected]>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Nov 14, 2025
@sbrannen sbrannen added the in: core Issues in core modules (aop, beans, core, context, expression) label Nov 15, 2025
@sbrannen sbrannen self-assigned this Nov 15, 2025
@sbrannen sbrannen added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Nov 17, 2025
@sbrannen sbrannen added this to the 7.0.1 milestone Nov 17, 2025
@sbrannen sbrannen added the for: backport-to-6.2.x Marks an issue as a candidate for backport to 6.2.x label Nov 17, 2025
@sbrannen sbrannen changed the title Fix single-check idiom in UnmodifiableMultiValueMap Fix single-check idiom in UnmodifiableMultiValueMap Nov 17, 2025
@sbrannen sbrannen added status: backported An issue that has been backported to maintenance branches and removed for: backport-to-6.2.x Marks an issue as a candidate for backport to 6.2.x labels Nov 17, 2025
@sbrannen sbrannen closed this in 3b6be3d Nov 17, 2025
sbrannen pushed a commit that referenced this pull request Nov 17, 2025
Read the respective fields only once in the values(), entrySet(), and
keySet() methods.

Closes gh-35822

Signed-off-by: Patrick Strawderman <[email protected]>

(cherry picked from commit 3b6be3d)
@sbrannen
Copy link
Member

This has been merged into main and 6.2.x.

Thanks

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: enhancement A general enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants