Commit 4fd638e
committed
Wrap LinkedList manipulations into synchronized
https://build.spring.io/browse/INT-MASTER-1017
Looks like non-`volatile` `size` property in the `LinkedList` is not
updated properly for the `contains()` assertion, therefore we end up
with the `ConcurrentModificationException`
* Move `assertThat()` into the `synchronized (overridePresent)` block
to enforce CPU cache flushing and, therefore, have an actual value
for the `LinkedList.size` during iteration1 parent e987387 commit 4fd638e
File tree
1 file changed
+1
-1
lines changed- spring-integration-core/src/test/java/org/springframework/integration/endpoint
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
| 314 | + | |
314 | 315 | | |
315 | | - | |
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
| |||
0 commit comments