using -XX:-UseCompilerSafepoints
Aleksey Shipilev
aleksey.shipilev at oracle.com
Mon Nov 10 20:10:01 UTC 2014
-jvmPrependArgs only affects forked runs.
-f 0 run needs the JVM option right for the host VM (e.g. before -jar).
-Aleksey.
On 11/10/2014 10:45 PM, Deneau, Tom wrote:
> I noticed using -f 0 with -XX:-UseCompilerSafepoints does not hang.
>
> -- Tom
>
>
> -----Original Message-----
> From: Aleksey Shipilev [mailto:aleksey.shipilev at oracle.com]
> Sent: Monday, November 10, 2014 1:13 PM
> To: Deneau, Tom; jmh-dev at openjdk.java.net
> Subject: Re: using -XX:-UseCompilerSafepoints
>
> On 11/10/2014 10:05 PM, Deneau, Tom wrote:
>> I wanted to test the effect of the CompilerSafepoints poll instruction
>> on a doNothing loop. But when I tried this, the first warmup
>> iteration (supposed to be 1 second) never returned. I am using
>> forking. so something like -f 1 -jvmPrependArgs
>> "-XX:-UseCompilerSafepoints"
>>
>> Is this combination legal?
>
> JMH usage seems legal.
>
> I wonder if your code is stuck in the infinite loop somewhere with -XX:-UseCompilerSafepoints.
>
> -Aleksey.
>
>
More information about the jmh-dev
mailing list