RFR: 8356698: JFR: @Contextual
Markus Grönlund
mgronlun at openjdk.org
Sat May 31 19:03:50 UTC 2025
On Thu, 15 May 2025 12:46:54 GMT, Erik Gahlin <egahlin at openjdk.org> wrote:
> Could I have a review of a new annotation that can be used to annotate a field as contextual.
>
> Testing: jdk/jdk/jfr + tier1
>
> Thanks
> Erik
A very nice addition and an excellent demo example for showcasing the capabilities is provided in the test: TestPrintContextual.java
src/jdk.jfr/share/classes/jdk/jfr/events/MethodTraceEvent.java line 39:
> 37: public final class MethodTraceEvent extends AbstractJDKEvent {
> 38:
> 39: @Contextual
Should the MethodTraceEvent's method field really have this annotation? Or is it a remnant from testing?
-------------
Marked as reviewed by mgronlun (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/25249#pullrequestreview-2884461033
PR Review Comment: https://git.openjdk.org/jdk/pull/25249#discussion_r2118169044
More information about the hotspot-jfr-dev
mailing list