AW: volatile boolean isDone in InfraControl
James Cheng
james.cheng at oracle.com
Mon Oct 3 17:18:39 UTC 2016
Hi Bernd,
Many thanks for your quick suggestion and pointers.
On 10/1/2016 9:12 AM, ecki at zusammenkunft.net wrote:
> Hello James,
>
> I would think if you want to test unrolling and inlining effects inside loops it is best to have a loop inside your method under test: You dont have the volatile access
> then inside the hot code and can better emulate the structure of the code. (dont forget to actually return/blackhole a result from your loop)
I will try that and experiment with different loop counts as mentioned in
JMHSample_11_Loops.java which Aleksey just pointed to me.
Thanks,
-James
More information about the jmh-dev
mailing list