View Javadoc
1   package org.apache.commons.rng.examples.jmh.sampling.jmh_generated;
2   
3   import java.util.List;
4   import java.util.concurrent.atomic.AtomicInteger;
5   import java.util.Collection;
6   import java.util.ArrayList;
7   import java.util.concurrent.TimeUnit;
8   import org.openjdk.jmh.annotations.CompilerControl;
9   import org.openjdk.jmh.runner.InfraControl;
10  import org.openjdk.jmh.infra.ThreadParams;
11  import org.openjdk.jmh.results.BenchmarkTaskResult;
12  import org.openjdk.jmh.results.Result;
13  import org.openjdk.jmh.results.ThroughputResult;
14  import org.openjdk.jmh.results.AverageTimeResult;
15  import org.openjdk.jmh.results.SampleTimeResult;
16  import org.openjdk.jmh.results.SingleShotResult;
17  import org.openjdk.jmh.util.SampleBuffer;
18  import org.openjdk.jmh.annotations.Mode;
19  import org.openjdk.jmh.annotations.Fork;
20  import org.openjdk.jmh.annotations.Measurement;
21  import org.openjdk.jmh.annotations.Threads;
22  import org.openjdk.jmh.annotations.Warmup;
23  import org.openjdk.jmh.annotations.BenchmarkMode;
24  import org.openjdk.jmh.results.RawResults;
25  import org.openjdk.jmh.results.ResultRole;
26  import java.lang.reflect.Field;
27  import org.openjdk.jmh.infra.BenchmarkParams;
28  import org.openjdk.jmh.infra.IterationParams;
29  import org.openjdk.jmh.infra.Blackhole;
30  import org.openjdk.jmh.infra.Control;
31  import org.openjdk.jmh.results.ScalarResult;
32  import org.openjdk.jmh.results.AggregationPolicy;
33  import org.openjdk.jmh.runner.FailureAssistException;
34  
35  import org.apache.commons.rng.examples.jmh.sampling.jmh_generated.UnitSphereSamplerBenchmark_Sampler2D_jmhType;
36  import org.apache.commons.rng.examples.jmh.sampling.jmh_generated.UnitSphereSamplerBenchmark_jmhType;
37  public final class UnitSphereSamplerBenchmark_create2D_jmhTest {
38  
39      byte p000, p001, p002, p003, p004, p005, p006, p007, p008, p009, p010, p011, p012, p013, p014, p015;
40      byte p016, p017, p018, p019, p020, p021, p022, p023, p024, p025, p026, p027, p028, p029, p030, p031;
41      byte p032, p033, p034, p035, p036, p037, p038, p039, p040, p041, p042, p043, p044, p045, p046, p047;
42      byte p048, p049, p050, p051, p052, p053, p054, p055, p056, p057, p058, p059, p060, p061, p062, p063;
43      byte p064, p065, p066, p067, p068, p069, p070, p071, p072, p073, p074, p075, p076, p077, p078, p079;
44      byte p080, p081, p082, p083, p084, p085, p086, p087, p088, p089, p090, p091, p092, p093, p094, p095;
45      byte p096, p097, p098, p099, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111;
46      byte p112, p113, p114, p115, p116, p117, p118, p119, p120, p121, p122, p123, p124, p125, p126, p127;
47      byte p128, p129, p130, p131, p132, p133, p134, p135, p136, p137, p138, p139, p140, p141, p142, p143;
48      byte p144, p145, p146, p147, p148, p149, p150, p151, p152, p153, p154, p155, p156, p157, p158, p159;
49      byte p160, p161, p162, p163, p164, p165, p166, p167, p168, p169, p170, p171, p172, p173, p174, p175;
50      byte p176, p177, p178, p179, p180, p181, p182, p183, p184, p185, p186, p187, p188, p189, p190, p191;
51      byte p192, p193, p194, p195, p196, p197, p198, p199, p200, p201, p202, p203, p204, p205, p206, p207;
52      byte p208, p209, p210, p211, p212, p213, p214, p215, p216, p217, p218, p219, p220, p221, p222, p223;
53      byte p224, p225, p226, p227, p228, p229, p230, p231, p232, p233, p234, p235, p236, p237, p238, p239;
54      byte p240, p241, p242, p243, p244, p245, p246, p247, p248, p249, p250, p251, p252, p253, p254, p255;
55      int startRndMask;
56      BenchmarkParams benchmarkParams;
57      IterationParams iterationParams;
58      ThreadParams threadParams;
59      Blackhole blackhole;
60      Control notifyControl;
61  
62      public BenchmarkTaskResult create2D_Throughput(InfraControl control, ThreadParams threadParams) throws Throwable {
63          this.benchmarkParams = control.benchmarkParams;
64          this.iterationParams = control.iterationParams;
65          this.threadParams    = threadParams;
66          this.notifyControl   = control.notifyControl;
67          if (this.blackhole == null) {
68              this.blackhole = new Blackhole("Today's password is swordfish. I understand instantiating Blackholes directly is dangerous.");
69          }
70          if (threadParams.getSubgroupIndex() == 0) {
71              RawResults res = new RawResults();
72              UnitSphereSamplerBenchmark_jmhType l_unitspheresamplerbenchmark0_G = _jmh_tryInit_f_unitspheresamplerbenchmark0_G(control);
73              UnitSphereSamplerBenchmark_Sampler2D_jmhType l_sampler2d1_G = _jmh_tryInit_f_sampler2d1_G(control);
74  
75              control.preSetup();
76  
77  
78              control.announceWarmupReady();
79              while (control.warmupShouldWait) {
80                  l_unitspheresamplerbenchmark0_G.create2D(blackhole, l_sampler2d1_G);
81                  res.allOps++;
82              }
83  
84              notifyControl.startMeasurement = true;
85              create2D_thrpt_jmhStub(control, res, benchmarkParams, iterationParams, threadParams, blackhole, notifyControl, startRndMask, l_sampler2d1_G, l_unitspheresamplerbenchmark0_G);
86              notifyControl.stopMeasurement = true;
87              control.announceWarmdownReady();
88              try {
89                  while (control.warmdownShouldWait) {
90                      l_unitspheresamplerbenchmark0_G.create2D(blackhole, l_sampler2d1_G);
91                      res.allOps++;
92                  }
93              } catch (Throwable e) {
94                  if (!(e instanceof InterruptedException)) throw e;
95              }
96              control.preTearDown();
97  
98              if (control.isLastIteration()) {
99                  if (UnitSphereSamplerBenchmark_Sampler2D_jmhType.tearTrialMutexUpdater.compareAndSet(l_sampler2d1_G, 0, 1)) {
100                     try {
101                         if (control.isFailing) throw new FailureAssistException();
102                         if (l_sampler2d1_G.readyTrial) {
103                             l_sampler2d1_G.readyTrial = false;
104                         }
105                     } catch (Throwable t) {
106                         control.isFailing = true;
107                         throw t;
108                     } finally {
109                         UnitSphereSamplerBenchmark_Sampler2D_jmhType.tearTrialMutexUpdater.set(l_sampler2d1_G, 0);
110                     }
111                 } else {
112                     long l_sampler2d1_G_backoff = 1;
113                     while (UnitSphereSamplerBenchmark_Sampler2D_jmhType.tearTrialMutexUpdater.get(l_sampler2d1_G) == 1) {
114                         TimeUnit.MILLISECONDS.sleep(l_sampler2d1_G_backoff);
115                         l_sampler2d1_G_backoff = Math.max(1024, l_sampler2d1_G_backoff * 2);
116                         if (control.isFailing) throw new FailureAssistException();
117                         if (Thread.interrupted()) throw new InterruptedException();
118                     }
119                 }
120                 synchronized(this.getClass()) {
121                     f_sampler2d1_G = null;
122                 }
123                 synchronized(this.getClass()) {
124                     f_unitspheresamplerbenchmark0_G = null;
125                 }
126             }
127             res.allOps += res.measuredOps;
128             int batchSize = iterationParams.getBatchSize();
129             int opsPerInv = benchmarkParams.getOpsPerInvocation();
130             res.allOps *= opsPerInv;
131             res.allOps /= batchSize;
132             res.measuredOps *= opsPerInv;
133             res.measuredOps /= batchSize;
134             BenchmarkTaskResult results = new BenchmarkTaskResult((long)res.allOps, (long)res.measuredOps);
135             results.add(new ThroughputResult(ResultRole.PRIMARY, "create2D", res.measuredOps, res.getTime(), benchmarkParams.getTimeUnit()));
136             this.blackhole.evaporate("Yes, I am Stephen Hawking, and know a thing or two about black holes.");
137             return results;
138         } else
139             throw new IllegalStateException("Harness failed to distribute threads among groups properly");
140     }
141 
142     public static void create2D_thrpt_jmhStub(InfraControl control, RawResults result, BenchmarkParams benchmarkParams, IterationParams iterationParams, ThreadParams threadParams, Blackhole blackhole, Control notifyControl, int startRndMask, UnitSphereSamplerBenchmark_Sampler2D_jmhType l_sampler2d1_G, UnitSphereSamplerBenchmark_jmhType l_unitspheresamplerbenchmark0_G) throws Throwable {
143         long operations = 0;
144         long realTime = 0;
145         result.startTime = System.nanoTime();
146         do {
147             l_unitspheresamplerbenchmark0_G.create2D(blackhole, l_sampler2d1_G);
148             operations++;
149         } while(!control.isDone);
150         result.stopTime = System.nanoTime();
151         result.realTime = realTime;
152         result.measuredOps = operations;
153     }
154 
155 
156     public BenchmarkTaskResult create2D_AverageTime(InfraControl control, ThreadParams threadParams) throws Throwable {
157         this.benchmarkParams = control.benchmarkParams;
158         this.iterationParams = control.iterationParams;
159         this.threadParams    = threadParams;
160         this.notifyControl   = control.notifyControl;
161         if (this.blackhole == null) {
162             this.blackhole = new Blackhole("Today's password is swordfish. I understand instantiating Blackholes directly is dangerous.");
163         }
164         if (threadParams.getSubgroupIndex() == 0) {
165             RawResults res = new RawResults();
166             UnitSphereSamplerBenchmark_jmhType l_unitspheresamplerbenchmark0_G = _jmh_tryInit_f_unitspheresamplerbenchmark0_G(control);
167             UnitSphereSamplerBenchmark_Sampler2D_jmhType l_sampler2d1_G = _jmh_tryInit_f_sampler2d1_G(control);
168 
169             control.preSetup();
170 
171 
172             control.announceWarmupReady();
173             while (control.warmupShouldWait) {
174                 l_unitspheresamplerbenchmark0_G.create2D(blackhole, l_sampler2d1_G);
175                 res.allOps++;
176             }
177 
178             notifyControl.startMeasurement = true;
179             create2D_avgt_jmhStub(control, res, benchmarkParams, iterationParams, threadParams, blackhole, notifyControl, startRndMask, l_sampler2d1_G, l_unitspheresamplerbenchmark0_G);
180             notifyControl.stopMeasurement = true;
181             control.announceWarmdownReady();
182             try {
183                 while (control.warmdownShouldWait) {
184                     l_unitspheresamplerbenchmark0_G.create2D(blackhole, l_sampler2d1_G);
185                     res.allOps++;
186                 }
187             } catch (Throwable e) {
188                 if (!(e instanceof InterruptedException)) throw e;
189             }
190             control.preTearDown();
191 
192             if (control.isLastIteration()) {
193                 if (UnitSphereSamplerBenchmark_Sampler2D_jmhType.tearTrialMutexUpdater.compareAndSet(l_sampler2d1_G, 0, 1)) {
194                     try {
195                         if (control.isFailing) throw new FailureAssistException();
196                         if (l_sampler2d1_G.readyTrial) {
197                             l_sampler2d1_G.readyTrial = false;
198                         }
199                     } catch (Throwable t) {
200                         control.isFailing = true;
201                         throw t;
202                     } finally {
203                         UnitSphereSamplerBenchmark_Sampler2D_jmhType.tearTrialMutexUpdater.set(l_sampler2d1_G, 0);
204                     }
205                 } else {
206                     long l_sampler2d1_G_backoff = 1;
207                     while (UnitSphereSamplerBenchmark_Sampler2D_jmhType.tearTrialMutexUpdater.get(l_sampler2d1_G) == 1) {
208                         TimeUnit.MILLISECONDS.sleep(l_sampler2d1_G_backoff);
209                         l_sampler2d1_G_backoff = Math.max(1024, l_sampler2d1_G_backoff * 2);
210                         if (control.isFailing) throw new FailureAssistException();
211                         if (Thread.interrupted()) throw new InterruptedException();
212                     }
213                 }
214                 synchronized(this.getClass()) {
215                     f_sampler2d1_G = null;
216                 }
217                 synchronized(this.getClass()) {
218                     f_unitspheresamplerbenchmark0_G = null;
219                 }
220             }
221             res.allOps += res.measuredOps;
222             int batchSize = iterationParams.getBatchSize();
223             int opsPerInv = benchmarkParams.getOpsPerInvocation();
224             res.allOps *= opsPerInv;
225             res.allOps /= batchSize;
226             res.measuredOps *= opsPerInv;
227             res.measuredOps /= batchSize;
228             BenchmarkTaskResult results = new BenchmarkTaskResult((long)res.allOps, (long)res.measuredOps);
229             results.add(new AverageTimeResult(ResultRole.PRIMARY, "create2D", res.measuredOps, res.getTime(), benchmarkParams.getTimeUnit()));
230             this.blackhole.evaporate("Yes, I am Stephen Hawking, and know a thing or two about black holes.");
231             return results;
232         } else
233             throw new IllegalStateException("Harness failed to distribute threads among groups properly");
234     }
235 
236     public static void create2D_avgt_jmhStub(InfraControl control, RawResults result, BenchmarkParams benchmarkParams, IterationParams iterationParams, ThreadParams threadParams, Blackhole blackhole, Control notifyControl, int startRndMask, UnitSphereSamplerBenchmark_Sampler2D_jmhType l_sampler2d1_G, UnitSphereSamplerBenchmark_jmhType l_unitspheresamplerbenchmark0_G) throws Throwable {
237         long operations = 0;
238         long realTime = 0;
239         result.startTime = System.nanoTime();
240         do {
241             l_unitspheresamplerbenchmark0_G.create2D(blackhole, l_sampler2d1_G);
242             operations++;
243         } while(!control.isDone);
244         result.stopTime = System.nanoTime();
245         result.realTime = realTime;
246         result.measuredOps = operations;
247     }
248 
249 
250     public BenchmarkTaskResult create2D_SampleTime(InfraControl control, ThreadParams threadParams) throws Throwable {
251         this.benchmarkParams = control.benchmarkParams;
252         this.iterationParams = control.iterationParams;
253         this.threadParams    = threadParams;
254         this.notifyControl   = control.notifyControl;
255         if (this.blackhole == null) {
256             this.blackhole = new Blackhole("Today's password is swordfish. I understand instantiating Blackholes directly is dangerous.");
257         }
258         if (threadParams.getSubgroupIndex() == 0) {
259             RawResults res = new RawResults();
260             UnitSphereSamplerBenchmark_jmhType l_unitspheresamplerbenchmark0_G = _jmh_tryInit_f_unitspheresamplerbenchmark0_G(control);
261             UnitSphereSamplerBenchmark_Sampler2D_jmhType l_sampler2d1_G = _jmh_tryInit_f_sampler2d1_G(control);
262 
263             control.preSetup();
264 
265 
266             control.announceWarmupReady();
267             while (control.warmupShouldWait) {
268                 l_unitspheresamplerbenchmark0_G.create2D(blackhole, l_sampler2d1_G);
269                 res.allOps++;
270             }
271 
272             notifyControl.startMeasurement = true;
273             int targetSamples = (int) (control.getDuration(TimeUnit.MILLISECONDS) * 20); // at max, 20 timestamps per millisecond
274             int batchSize = iterationParams.getBatchSize();
275             int opsPerInv = benchmarkParams.getOpsPerInvocation();
276             SampleBuffer buffer = new SampleBuffer();
277             create2D_sample_jmhStub(control, res, benchmarkParams, iterationParams, threadParams, blackhole, notifyControl, startRndMask, buffer, targetSamples, opsPerInv, batchSize, l_sampler2d1_G, l_unitspheresamplerbenchmark0_G);
278             notifyControl.stopMeasurement = true;
279             control.announceWarmdownReady();
280             try {
281                 while (control.warmdownShouldWait) {
282                     l_unitspheresamplerbenchmark0_G.create2D(blackhole, l_sampler2d1_G);
283                     res.allOps++;
284                 }
285             } catch (Throwable e) {
286                 if (!(e instanceof InterruptedException)) throw e;
287             }
288             control.preTearDown();
289 
290             if (control.isLastIteration()) {
291                 if (UnitSphereSamplerBenchmark_Sampler2D_jmhType.tearTrialMutexUpdater.compareAndSet(l_sampler2d1_G, 0, 1)) {
292                     try {
293                         if (control.isFailing) throw new FailureAssistException();
294                         if (l_sampler2d1_G.readyTrial) {
295                             l_sampler2d1_G.readyTrial = false;
296                         }
297                     } catch (Throwable t) {
298                         control.isFailing = true;
299                         throw t;
300                     } finally {
301                         UnitSphereSamplerBenchmark_Sampler2D_jmhType.tearTrialMutexUpdater.set(l_sampler2d1_G, 0);
302                     }
303                 } else {
304                     long l_sampler2d1_G_backoff = 1;
305                     while (UnitSphereSamplerBenchmark_Sampler2D_jmhType.tearTrialMutexUpdater.get(l_sampler2d1_G) == 1) {
306                         TimeUnit.MILLISECONDS.sleep(l_sampler2d1_G_backoff);
307                         l_sampler2d1_G_backoff = Math.max(1024, l_sampler2d1_G_backoff * 2);
308                         if (control.isFailing) throw new FailureAssistException();
309                         if (Thread.interrupted()) throw new InterruptedException();
310                     }
311                 }
312                 synchronized(this.getClass()) {
313                     f_sampler2d1_G = null;
314                 }
315                 synchronized(this.getClass()) {
316                     f_unitspheresamplerbenchmark0_G = null;
317                 }
318             }
319             res.allOps += res.measuredOps * batchSize;
320             res.allOps *= opsPerInv;
321             res.allOps /= batchSize;
322             res.measuredOps *= opsPerInv;
323             BenchmarkTaskResult results = new BenchmarkTaskResult((long)res.allOps, (long)res.measuredOps);
324             results.add(new SampleTimeResult(ResultRole.PRIMARY, "create2D", buffer, benchmarkParams.getTimeUnit()));
325             this.blackhole.evaporate("Yes, I am Stephen Hawking, and know a thing or two about black holes.");
326             return results;
327         } else
328             throw new IllegalStateException("Harness failed to distribute threads among groups properly");
329     }
330 
331     public static void create2D_sample_jmhStub(InfraControl control, RawResults result, BenchmarkParams benchmarkParams, IterationParams iterationParams, ThreadParams threadParams, Blackhole blackhole, Control notifyControl, int startRndMask, SampleBuffer buffer, int targetSamples, long opsPerInv, int batchSize, UnitSphereSamplerBenchmark_Sampler2D_jmhType l_sampler2d1_G, UnitSphereSamplerBenchmark_jmhType l_unitspheresamplerbenchmark0_G) throws Throwable {
332         long realTime = 0;
333         long operations = 0;
334         int rnd = (int)System.nanoTime();
335         int rndMask = startRndMask;
336         long time = 0;
337         int currentStride = 0;
338         do {
339             rnd = (rnd * 1664525 + 1013904223);
340             boolean sample = (rnd & rndMask) == 0;
341             if (sample) {
342                 time = System.nanoTime();
343             }
344             for (int b = 0; b < batchSize; b++) {
345                 if (control.volatileSpoiler) return;
346                 l_unitspheresamplerbenchmark0_G.create2D(blackhole, l_sampler2d1_G);
347             }
348             if (sample) {
349                 buffer.add((System.nanoTime() - time) / opsPerInv);
350                 if (currentStride++ > targetSamples) {
351                     buffer.half();
352                     currentStride = 0;
353                     rndMask = (rndMask << 1) + 1;
354                 }
355             }
356             operations++;
357         } while(!control.isDone);
358         startRndMask = Math.max(startRndMask, rndMask);
359         result.realTime = realTime;
360         result.measuredOps = operations;
361     }
362 
363 
364     public BenchmarkTaskResult create2D_SingleShotTime(InfraControl control, ThreadParams threadParams) throws Throwable {
365         this.benchmarkParams = control.benchmarkParams;
366         this.iterationParams = control.iterationParams;
367         this.threadParams    = threadParams;
368         this.notifyControl   = control.notifyControl;
369         if (this.blackhole == null) {
370             this.blackhole = new Blackhole("Today's password is swordfish. I understand instantiating Blackholes directly is dangerous.");
371         }
372         if (threadParams.getSubgroupIndex() == 0) {
373             UnitSphereSamplerBenchmark_jmhType l_unitspheresamplerbenchmark0_G = _jmh_tryInit_f_unitspheresamplerbenchmark0_G(control);
374             UnitSphereSamplerBenchmark_Sampler2D_jmhType l_sampler2d1_G = _jmh_tryInit_f_sampler2d1_G(control);
375 
376             control.preSetup();
377 
378 
379             notifyControl.startMeasurement = true;
380             RawResults res = new RawResults();
381             int batchSize = iterationParams.getBatchSize();
382             create2D_ss_jmhStub(control, res, benchmarkParams, iterationParams, threadParams, blackhole, notifyControl, startRndMask, batchSize, l_sampler2d1_G, l_unitspheresamplerbenchmark0_G);
383             control.preTearDown();
384 
385             if (control.isLastIteration()) {
386                 if (UnitSphereSamplerBenchmark_Sampler2D_jmhType.tearTrialMutexUpdater.compareAndSet(l_sampler2d1_G, 0, 1)) {
387                     try {
388                         if (control.isFailing) throw new FailureAssistException();
389                         if (l_sampler2d1_G.readyTrial) {
390                             l_sampler2d1_G.readyTrial = false;
391                         }
392                     } catch (Throwable t) {
393                         control.isFailing = true;
394                         throw t;
395                     } finally {
396                         UnitSphereSamplerBenchmark_Sampler2D_jmhType.tearTrialMutexUpdater.set(l_sampler2d1_G, 0);
397                     }
398                 } else {
399                     long l_sampler2d1_G_backoff = 1;
400                     while (UnitSphereSamplerBenchmark_Sampler2D_jmhType.tearTrialMutexUpdater.get(l_sampler2d1_G) == 1) {
401                         TimeUnit.MILLISECONDS.sleep(l_sampler2d1_G_backoff);
402                         l_sampler2d1_G_backoff = Math.max(1024, l_sampler2d1_G_backoff * 2);
403                         if (control.isFailing) throw new FailureAssistException();
404                         if (Thread.interrupted()) throw new InterruptedException();
405                     }
406                 }
407                 synchronized(this.getClass()) {
408                     f_sampler2d1_G = null;
409                 }
410                 synchronized(this.getClass()) {
411                     f_unitspheresamplerbenchmark0_G = null;
412                 }
413             }
414             int opsPerInv = control.benchmarkParams.getOpsPerInvocation();
415             long totalOps = opsPerInv;
416             BenchmarkTaskResult results = new BenchmarkTaskResult(totalOps, totalOps);
417             results.add(new SingleShotResult(ResultRole.PRIMARY, "create2D", res.getTime(), totalOps, benchmarkParams.getTimeUnit()));
418             this.blackhole.evaporate("Yes, I am Stephen Hawking, and know a thing or two about black holes.");
419             return results;
420         } else
421             throw new IllegalStateException("Harness failed to distribute threads among groups properly");
422     }
423 
424     public static void create2D_ss_jmhStub(InfraControl control, RawResults result, BenchmarkParams benchmarkParams, IterationParams iterationParams, ThreadParams threadParams, Blackhole blackhole, Control notifyControl, int startRndMask, int batchSize, UnitSphereSamplerBenchmark_Sampler2D_jmhType l_sampler2d1_G, UnitSphereSamplerBenchmark_jmhType l_unitspheresamplerbenchmark0_G) throws Throwable {
425         long realTime = 0;
426         result.startTime = System.nanoTime();
427         for (int b = 0; b < batchSize; b++) {
428             if (control.volatileSpoiler) return;
429             l_unitspheresamplerbenchmark0_G.create2D(blackhole, l_sampler2d1_G);
430         }
431         result.stopTime = System.nanoTime();
432         result.realTime = realTime;
433     }
434 
435     
436     static volatile UnitSphereSamplerBenchmark_Sampler2D_jmhType f_sampler2d1_G;
437     
438     UnitSphereSamplerBenchmark_Sampler2D_jmhType _jmh_tryInit_f_sampler2d1_G(InfraControl control) throws Throwable {
439         UnitSphereSamplerBenchmark_Sampler2D_jmhType val = f_sampler2d1_G;
440         if (val != null) {
441             return val;
442         }
443         synchronized(this.getClass()) {
444             try {
445             if (control.isFailing) throw new FailureAssistException();
446             val = f_sampler2d1_G;
447             if (val != null) {
448                 return val;
449             }
450             val = new UnitSphereSamplerBenchmark_Sampler2D_jmhType();
451             Field f;
452             f = org.apache.commons.rng.examples.jmh.sampling.UnitSphereSamplerBenchmark.SamplerData.class.getDeclaredField("size");
453             f.setAccessible(true);
454             f.set(val, Integer.valueOf(control.getParam("size")));
455             f = org.apache.commons.rng.examples.jmh.sampling.UnitSphereSamplerBenchmark.Sampler2D.class.getDeclaredField("type");
456             f.setAccessible(true);
457             f.set(val, control.getParam("type"));
458             val.setup();
459             val.readyTrial = true;
460             f_sampler2d1_G = val;
461             } catch (Throwable t) {
462                 control.isFailing = true;
463                 throw t;
464             }
465         }
466         return val;
467     }
468     
469     static volatile UnitSphereSamplerBenchmark_jmhType f_unitspheresamplerbenchmark0_G;
470     
471     UnitSphereSamplerBenchmark_jmhType _jmh_tryInit_f_unitspheresamplerbenchmark0_G(InfraControl control) throws Throwable {
472         UnitSphereSamplerBenchmark_jmhType val = f_unitspheresamplerbenchmark0_G;
473         if (val != null) {
474             return val;
475         }
476         synchronized(this.getClass()) {
477             try {
478             if (control.isFailing) throw new FailureAssistException();
479             val = f_unitspheresamplerbenchmark0_G;
480             if (val != null) {
481                 return val;
482             }
483             val = new UnitSphereSamplerBenchmark_jmhType();
484             val.readyTrial = true;
485             f_unitspheresamplerbenchmark0_G = val;
486             } catch (Throwable t) {
487                 control.isFailing = true;
488                 throw t;
489             }
490         }
491         return val;
492     }
493 
494 
495 }
496