标签: java multithreading java.util.concurrent concurrenthashmap
为什么并发hashmap中的最大并发级别仅为65535。这与内存大小有关。
/** * The maximum number of segments to allow; used to bound * constructor arguments. */ static final int MAX_SEGMENTS = 1 << 16; // slightly conservative