[PATCH] JFR thread sampling issue

Milan Mimica milan.mimica at gmail.com
Mon Nov 19 15:26:30 UTC 2018


Hello Erik

On Mon, 19 Nov 2018 at 14:49, Erik Gahlin <erik.gahlin at oracle.com> wrote:

> Hello Milan,
>
> The thread sampling mechanism was changed. Sampling now happens in a
> dedicated thread, which means it is possible to set a higher sampling rate
> than 10 ms.
>

I just noticed sampling rate is still capped to 10ms in
JfrThreadSampler::run:
    jlong java_interval = _interval_java == 0 ? max_jlong :
MAX2<jlong>(_interval_java, 10);
    jlong native_interval = _interval_native == 0 ? max_jlong :
MAX2<jlong>(_interval_native, 10);


More information about the hotspot-jfr-dev mailing list