Integrated: 8315364: Assert thread state invariant for JFR stack trace capture
Markus Grönlund
mgronlun at openjdk.org
Thu Nov 2 19:38:12 UTC 2023
On Wed, 30 Aug 2023 12:38:46 GMT, Markus Grönlund <mgronlun at openjdk.org> wrote:
> Greetings,
>
> A JavaThread running in state _thread_in_native cannot capture a JFR stack trace because tagging of artefacts (klasses, methods, etc.) is a function of an epoch, which evolves during safepoints.
>
> Asserting this invariant would have helped prevent the issue detailed in [JDK-8315220](https://bugs.openjdk.org/browse/JDK-8315220).
>
> Testing: jdk_jfr
>
> Thanks
> Markus
This pull request has now been integrated.
Changeset: ffaecd4a
Author: Markus Grönlund <mgronlun at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/ffaecd4aa23ca15e765784858da82b632c72dfc2
Stats: 18 lines in 2 files changed: 10 ins; 8 del; 0 mod
8315364: Assert thread state invariant for JFR stack trace capture
Reviewed-by: egahlin
-------------
PR: https://git.openjdk.org/jdk/pull/15491
More information about the hotspot-jfr-dev
mailing list