diff options
author | Aleksandar Prokopec <aleksandar.prokopec@gmail.com> | 2015-02-11 20:40:35 +0100 |
---|---|---|
committer | Aleksandar Prokopec <aleksandar.prokopec@gmail.com> | 2015-02-18 23:34:24 +0100 |
commit | da2d4caae990bcb9fabb13e7a242b2b7babe0e0b (patch) | |
tree | 8d972c91aa4a3c4da1f2631689e1fc558cc80fc5 /test/files/jvm/t2585 | |
parent | d14e065eb792a1eb77289f4a1320071c57c5d09b (diff) | |
download | scala-da2d4caae990bcb9fabb13e7a242b2b7babe0e0b.tar.gz scala-da2d4caae990bcb9fabb13e7a242b2b7babe0e0b.tar.bz2 scala-da2d4caae990bcb9fabb13e7a242b2b7babe0e0b.zip |
Fix SI-7943 -- make `TrieMap.getOrElseUpdate` atomic.
Override `getOrElseUpdate` method in `TrieMap`.
The signature and contract of this method corresponds closely to the
`computeIfAbsent` from `java.util.concurrent.ConcurrentMap`.
Eventually, `computeIfAbsent` should be added to
`scala.collection.concurrent.Map`.
Add tests.
Review by @Ichoran
Diffstat (limited to 'test/files/jvm/t2585')
0 files changed, 0 insertions, 0 deletions