private void createImplementation(ThreadParams threads) { if ("ConcurrentHashSet".equalsIgnoreCase(implementation)) { set = Collections.newSetFromMap(new ConcurrentHashMap<String, Boolean>()); } else if ("NonBlockingHashSet".equalsIgnoreCase(implementation)) { set = new NonBlockingHashSet<String>(); } else if ("SingleWriterHashSet".equalsIgnoreCase(implementation)) { if (threads.getGroupIndex() == 0 && threads.getSubgroupIndex() == 0 && threads.getSubgroupThreadCount() != 1) { throw new IllegalArgumentException("Trying to benchmark SingleWriterHashSet with multiple writer threads"); } set = new SingleWriterHashSet<String>(16); } else { throw new IllegalArgumentException("Unsupported map: " + implementation); } }
MultipleGraphSimpleInsertBenchmark_jmhType _jmh_tryInit_f_multiplegraphsimpleinsertbenchmark0_G(InfraControl control) throws Throwable { int groupIdx = threadParams.getGroupIndex(); MultipleGraphSimpleInsertBenchmark_jmhType val = f_multiplegraphsimpleinsertbenchmark0_G_map.get(groupIdx); if (val != null) { return val; } synchronized(this.getClass()) { try { if (control.isFailing) throw new FailureAssistException(); val = f_multiplegraphsimpleinsertbenchmark0_G_map.get(groupIdx); if (val != null) { return val; } val = new MultipleGraphSimpleInsertBenchmark_jmhType(); val.readyTrial = true; f_multiplegraphsimpleinsertbenchmark0_G_map.put(groupIdx, val); } catch (Throwable t) { control.isFailing = true; throw t; } } return val; }
ReadBenchmark_jmhType _jmh_tryInit_f_readbenchmark0_G(InfraControl control) throws Throwable { int groupIdx = threadParams.getGroupIndex(); ReadBenchmark_jmhType val = f_readbenchmark0_G_map.get(groupIdx); if (val != null) { return val; } synchronized(this.getClass()) { try { if (control.isFailing) throw new FailureAssistException(); val = f_readbenchmark0_G_map.get(groupIdx); if (val != null) { return val; } val = new ReadBenchmark_jmhType(); val.readyTrial = true; f_readbenchmark0_G_map.put(groupIdx, val); } catch (Throwable t) { control.isFailing = true; throw t; } } return val; }
ReadBenchmark_jmhType _jmh_tryInit_f_readbenchmark0_G(InfraControl control) throws Throwable { int groupIdx = threadParams.getGroupIndex(); ReadBenchmark_jmhType val = f_readbenchmark0_G_map.get(groupIdx); if (val != null) { return val; } synchronized(this.getClass()) { try { if (control.isFailing) throw new FailureAssistException(); val = f_readbenchmark0_G_map.get(groupIdx); if (val != null) { return val; } val = new ReadBenchmark_jmhType(); val.readyTrial = true; f_readbenchmark0_G_map.put(groupIdx, val); } catch (Throwable t) { control.isFailing = true; throw t; } } return val; }
MultipleGraphSimpleReadBenchmark_jmhType _jmh_tryInit_f_multiplegraphsimplereadbenchmark0_G(InfraControl control) throws Throwable { int groupIdx = threadParams.getGroupIndex(); MultipleGraphSimpleReadBenchmark_jmhType val = f_multiplegraphsimplereadbenchmark0_G_map.get(groupIdx); if (val != null) { return val; } synchronized(this.getClass()) { try { if (control.isFailing) throw new FailureAssistException(); val = f_multiplegraphsimplereadbenchmark0_G_map.get(groupIdx); if (val != null) { return val; } val = new MultipleGraphSimpleReadBenchmark_jmhType(); val.readyTrial = true; f_multiplegraphsimplereadbenchmark0_G_map.put(groupIdx, val); } catch (Throwable t) { control.isFailing = true; throw t; } } return val; }
f_readbenchmark0_G_map.remove(threadParams.getGroupIndex());
f_readbenchmark0_G_map.remove(threadParams.getGroupIndex());
f_readbenchmark0_G_map.remove(threadParams.getGroupIndex());
f_readbenchmark0_G_map.remove(threadParams.getGroupIndex());
f_readbenchmark0_G_map.remove(threadParams.getGroupIndex());
f_readbenchmark0_G_map.remove(threadParams.getGroupIndex());
f_readbenchmark0_G_map.remove(threadParams.getGroupIndex());
f_readbenchmark0_G_map.remove(threadParams.getGroupIndex());
f_multiplegraphsimplereadbenchmark0_G_map.remove(threadParams.getGroupIndex()); f_multiplegraphsimplereadbenchmark0_G_map.remove(threadParams.getGroupIndex());
f_multiplegraphsimpleinsertbenchmark0_G_map.remove(threadParams.getGroupIndex()); f_multiplegraphsimpleinsertbenchmark0_G_map.remove(threadParams.getGroupIndex());
f_multiplegraphsimplereadbenchmark0_G_map.remove(threadParams.getGroupIndex()); f_multiplegraphsimplereadbenchmark0_G_map.remove(threadParams.getGroupIndex());
f_multiplegraphsimpleinsertbenchmark0_G_map.remove(threadParams.getGroupIndex()); f_multiplegraphsimpleinsertbenchmark0_G_map.remove(threadParams.getGroupIndex());
f_multiplegraphsimplereadbenchmark0_G_map.remove(threadParams.getGroupIndex()); f_multiplegraphsimplereadbenchmark0_G_map.remove(threadParams.getGroupIndex());
f_multiplegraphsimplereadbenchmark0_G_map.remove(threadParams.getGroupIndex()); f_multiplegraphsimplereadbenchmark0_G_map.remove(threadParams.getGroupIndex());
f_multiplegraphsimpleinsertbenchmark0_G_map.remove(threadParams.getGroupIndex()); f_multiplegraphsimpleinsertbenchmark0_G_map.remove(threadParams.getGroupIndex());