RFR: 8315364: Assert thread state invariant for JFR stack trace capture

Erik Gahlin egahlin at openjdk.org
Wed Aug 30 12:54:09 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

Marked as reviewed by egahlin (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/15491#pullrequestreview-1602634329


More information about the hotspot-jfr-dev mailing list