scala/scala — pull request #3434 by Ichoran (2014-01-30 19:49:55+00:00)
Title: SI-8213 AnyRefMap.getOrElseUpdate is faulty

Altered getOrElseUpdate to be robust to the map changing out from under it as a result of calling the default value method. Side-effects FTW!

Made a comparable change in LongMap also, as it was also affected. And added a test to SetMapConsistencyTest.