private <K, V> List<Pair<K, V>> syncCopy(BiHashMap<K, V> map) {
        synchronized (map) {
            List<Pair<K, V>> list = new ArrayList<>(map.size());
            for (Entry<K, V> entry : map.entrySet()) {
                list.add(new Pair<>(entry.getKey(), entry.getValue()));
            }
            return list;
        }
    }
@author Jongho Moon
@author jaehong.kim
agent-module/profiler-test/src/main/java/com/navercorp/pinpoint/profiler/test/TestDataSender.java