MCPcopy Create free account
hub / github.com/ReadyTalk/avian / populateCommon

Method populateCommon

test/ConcurrentHashMapTest.java:108–115  ·  view source on GitHub ↗
(ConcurrentMap<Integer, Object> map)

Source from the content-addressed store, hash-verified

106 }
107
108 private static void populateCommon(ConcurrentMap<Integer, Object> map) {
109 Object value = new Object();
110 for (int i = CommonBase, j = CommonBase + Range; i < j; ++i) {
111 map.remove(i);
112 map.put(i, value);
113 map.remove(i);
114 }
115 }
116
117 private static void populate(ConcurrentMap<Integer, Object> map, int base) {
118 for (int i = base, j = base + Range; i < j; ++i) {

Callers 1

runMethod · 0.95

Calls 2

removeMethod · 0.65
putMethod · 0.65

Tested by

no test coverage detected