RFR of JDk9 8164623: Doc typo in java/util/concurrent/ConcurrentLinkedDeque.java and ConcurrentLinkedQueue.java
huaming.li at oracle.com
Tue Aug 23 08:55:46 UTC 2016
Below doc is not correct, because for ConcurrentLinkedDeque and
ConcurrentLinkedQueue, addAll is a atomic operation.
"Additionally, the bulk operations addAll, removeAll, retainAll,
containsAll, equals, and toArray are not guaranteed to be performed
atomically. For example, an iterator operating concurrently with an
addAll operation might view only some of the added elements."
It should be modified as some thing like below:
"Additionally, the bulk operations removeAll, retainAll, containsAll,
equals, and toArray are not guaranteed to be performed atomically."
More information about the core-libs-dev