News for hackers. Stuff that matters.
Re:Are Go maps sensitive to data races? by vbezhenar on Monday December 07, 2015 @06:38AM (#10688796)
From HashMap JavaDoc: Note that the fail-fast behavior of an iterator cannot be guaranteed as it is, generally speaking, impossible to make any hard guarantees in the presence of unsynchronized concurrent modification. Fail-fast iterators throw ConcurrentModificationException on a best-effort basis. Therefore, it would be wrong to write a program that depended on this exception for its correctness: the fail-fast behavior of iterators should be used only to detect bugs.

So even while Java tries to find concurrency bugs, it does not promise it.

Re:Are Go maps sensitive to data races? by lmm on Monday December 07, 2015 @08:01AM (#10689135)
Indeed it doesn't promise it. But in practice it's very good at it - the reason they have to put that note in there is because if you made a program whose correctness depended on it, it would be a long time before you saw the bug.
Re:Are Go maps sensitive to data races? by 4ad on Monday December 07, 2015 @06:39AM (#10688799)
Not to mention that Go does have the race detector, which does the same thing in this case (although it does so much more in general).