Skip to content

fix: another thread safety issue in MapCache#1130

Merged
rubenporras merged 1 commit into
dsldevkit:masterfrom
ava-fred:work.250516
Jun 5, 2025
Merged

fix: another thread safety issue in MapCache#1130
rubenporras merged 1 commit into
dsldevkit:masterfrom
ava-fred:work.250516

Conversation

@ava-fred
Copy link
Copy Markdown
Collaborator

@ava-fred ava-fred commented Jun 5, 2025

In 2025d75, we improved the thread safety of the MapCache class by implementing all methods of the Map interface in the class itself, instead of inheriting the (non-thread-safe) default implementations of the interface. On closer inspection, it turns out that the putIfAbsent method was already implemented, but in a non-thread-safe way.

In 2025d75, we improved the thread
safety of the MapCache class by implementing all methods of the Map
interface in the class itself, instead of inheriting the
(non-thread-safe) default implementations of the interface. On closer
inspection, it turns out that the putIfAbsent method was already
implemented, but in a non-thread-safe way.
@rubenporras rubenporras merged commit edb7f60 into dsldevkit:master Jun 5, 2025
2 checks passed
@ava-fred ava-fred deleted the work.250516 branch June 5, 2025 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants