The current JFR implementation happened in the JDK 8 era. Since then improvement have been made to the language and the libraries.
JDK 17 is a release that is likely to get backports over the next years, It make sense to update the implementation now, in particular with Collection factories and pattern matching for instanceof.
JDK 17 is a release that is likely to get backports over the next years, It make sense to update the implementation now, in particular with Collection factories and pattern matching for instanceof.