Skip to content

Commit 1f74966

Browse files
author
Vincent Potucek
committed
[tryout fix] concurrency bug in NamespacedHierarchicalStore#computeIfAbsent(Object, Object, Function) junit-team#5171 junit-team#5209
Signed-off-by: Vincent Potucek <vpotucek@me.com>
1 parent f9b7dfb commit 1f74966

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

documentation/modules/ROOT/partials/release-notes/release-notes-6.0.2.adoc

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,6 @@ repository on GitHub.
1717
==== Bug Fixes
1818

1919
* Make `ConsoleLauncher` compatible with JDK 26 by avoiding final field mutations.
20-
* Fix a concurrency bug in `NamespacedHierarchicalStore.computeIfAbsent` where
21-
the `defaultCreator` function was executed while holding the store's internal
22-
map lock. Under parallel execution, this could cause threads using the store to
23-
block each other and temporarily see a missing or incorrectly initialized state
24-
for values created via `computeIfAbsent`. The method now evaluates
25-
`defaultCreator` outside the critical section using a memoizing supplier,
26-
aligning its behavior with the deprecated `getOrComputeIfAbsent`.
2720

2821
[[v6.0.2-junit-platform-deprecations-and-breaking-changes]]
2922
==== Deprecations and Breaking Changes

0 commit comments

Comments
 (0)