You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@cassandra.apache.org by haaawk <gi...@git.apache.org> on 2018/03/05 13:15:42 UTC
[GitHub] cassandra pull request #:
Github user haaawk commented on the pull request:
https://github.com/apache/cassandra/commit/522d0dd1e4e0b76cb36907d13595b31e231543d6#commitcomment-27928749
In src/java/org/apache/cassandra/db/marshal/TypeParser.java:
In src/java/org/apache/cassandra/db/marshal/TypeParser.java on line 83:
Why is it guaranteed that running cache.put("some string", type) multiple times concurrently won't lead to a destruction of internal structures of the hash map? It seems to me that this code run concurrently could lead to a wrong structure of a tree inside the bucket: http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/8u40-b25/java/util/HashMap.java#1990
---
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org