RFR: 8297570: jdk/jfr/threading/TestDeepVirtualStackTrace.java fails with -XX:-UseTLAB

Markus Grönlund mgronlun at openjdk.org
Thu Nov 24 15:41:25 UTC 2022


On Thu, 24 Nov 2022 11:32:29 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> This is the only test in `jdk_loom` that fails without `-XX:-UseTLAB`. The test specifically looks for `ObjectAllocationOutsideTLAB` event, and there are lots of those events with `-XX:-UseTLAB`. We can fix the test to look for the event we actually want.
> 
> This depends on [JDK-8297491](https://bugs.openjdk.org/browse/JDK-8297491) that fixed Loom code to actually disable TLABs.
> 
> Additional testing:
>  - [x] Linux x86_64 fastdebug, affected test with `-XX:+UseTLAB` and `-XX:-UseTLAB`
>  - [x] Linux x86_64 fastdebug, `jdk_loom` with `{Serial, Parallel, G1, Shenandoah, Z} x {+UseTLAB, -UseTLAB}`

Marked as reviewed by mgronlun (Reviewer).

Hi @shipilev,
is the problem that the test gets way too many events when running with -XX:-UseTLAB? The validation logic fails because it expects only the one specified in the test? The fix is to add more explicit checks to only verify the test-generated allocations?

Thanks
Markus

Got it. Thanks for fixing!

-------------

PR: https://git.openjdk.org/jdk/pull/11352


More information about the hotspot-jfr-dev mailing list