Quite a few places in Hotspot code sending JFR events look like this:
EventXYZ event;
event.set_X(a)
event.set_Y(b);
...
event.commit();
This could be simplified by using the variant of the commit() method taking the arguments directly, ie.
EventXYZ event;
event.commit(a, b, ...)
Maybe even the set_* methods become obsolete by doing this.
Suggested during the discussion ofJDK-8211213 on the hotspot-dev mailing list.
EventXYZ event;
event.set_X(a)
event.set_Y(b);
...
event.commit();
This could be simplified by using the variant of the commit() method taking the arguments directly, ie.
EventXYZ event;
event.commit(a, b, ...)
Maybe even the set_* methods become obsolete by doing this.
Suggested during the discussion of
- relates to
-
JDK-8211213 AIX build fails after 8196341: Add JFR events for parallel phases of G1
- Closed