You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@geode.apache.org by "dschneider-pivotal (GitHub)" <gi...@apache.org> on 2020/04/02 21:25:20 UTC
[GitHub] [geode] dschneider-pivotal commented on pull request #4899:
GEODE-7945: Replace Map with ConcurrentMap for GemFireCacheImpl.rootRegions
This does not look thread safe. I don't think we want to do a get followed by a put here. This allows two threads to both see null on the get and then they both create it and the last one wins. Maybe a single call of computeIfAbsent instead of the get+put is what you want here
[ Full content available at: https://github.com/apache/geode/pull/4899 ]
This message was relayed via gitbox.apache.org for notifications@geode.apache.org